cOdynnCourses
Coding ChallengesChallenge Sets
cOdynn
cOdynn
HomeCoursesResources
BlogsCodynn Education
CompilerHTML, CSS & JSPHP EnvironmentLuaQbasicPythonDartRustR LanguageView All
Codynn LabsPortfolioMini ProjectsLanding PageGamesUtilities and ToolsUI ComponentsClone/InspiredLearnSnipsAcademyView All
Codynn SnippetLua SnippetsQbasic SnippetPython SnippetView All
MerchCodynn DiaryHoodieView All
ResourcesQuestionsAlgorithmsData StructureScriptsVideosInterview QuestionsDocumentationBlogsView All

Download the Codynn app.

Get it on Google Play
Codynn Mobile App
Codynn AcademyCodynn EducationCodynn Careers
HomeCoursesChallengesLabs
COURSES
  • c
  • c#
  • c++
  • clojure
  • elixir
  • go
  • haskell
  • javascript
  • kotlin
  • lua
  • python
  • qbasic
  • rust
  • scala
  • zig
CHALLENGES
  • C ++ Challenges
  • Java Challenges
  • JavaScript Challenges
  • Kotlin Challenges
  • Lua Challenges
  • Python Challenges
  • Rust Challenges
  • Swift Challenges
RESOURCES
  • Algorithms
  • Blogs
  • CodynnLabs
  • Data Structures
  • Documentation
  • Games
  • Interview Questions
  • Questions
  • Scripts
  • Videos
COMPANY
  • About Us
  • Careers
  • Codynn Academy
  • Codynn Launch Pad
  • Challenges VS Extension
  • Contact Us
POPULAR COURSES
  • Lua Course for Beginners
  • Introduction to QBasic
  • Rust Programming Course for Beginners
  • R Programming
  • Getting Started with Go
  • Master the Basics of Haskell
  • Intro to C# for Beginners – Game Dev Edition
  • TypeScript: Basics
  • Python From Scratch
  • C++ for Beginners
POPULAR CHALLENGES
  • 45 Days Basic Programming Challenges
  • Conditional Statements: Mini Challenge
  • Matrix Operations: Mini Challenge
  • Loops: Mini Challenge
  • Basic String Handling: Mini Challenge
  • Searching Algorithm: Mini Challenge
  • Sorting Algorithm: Mini Challenge
  • Conditional Loops: Mini Challenge
  • Higher Order Functions: Mini Challenge
  • Error Handling and Debugging: Mini Challenge
Logo
Codynn

A Product of VOID NEPAL © Codynn 2026

Core Swift: Functions, Closures & Custom Types

A hands-on, intermediate-level Swift course covering the six building blocks every real iOS or Swift app depends on: functions, closures, optionals, structs & classes, enumerations, and error handling Through interactive code challenges, quizzes, and visual diagrams, you'll move past basic syntax and start writing Swift the way experienced developers actually do, safely unwrapping optionals, modeling data with structs and enums, and handling failure with do-catch instead of crashes.

Get Started!
0Codynn Coins logo

Course Details

Language

Swift

Duration

6–8 hours

Difficulty:

medium

Category

Programming

Certificate

Yes

Requirements

  • Completion of a beginner Swift course (or equivalent basic syntax knowledge: variables, if/else, loops, arrays)
  • Xcode or Swift Playgrounds installed (for practicing beyond the in-browser code runner)
  • No prior app-development experience needed

Author

Codynn
CodynnCodynn
01

Functions

4 Chapters - 0/4 Completed

Defining & Calling Functions

Parameters (default, variadic, in-out)

Return Values & Tuples

Function Types & Closures as Parameters

02

Closures

4 Chapters - 0/4 Completed

Closure Syntax Basics

Trailing Closures

Capturing Values

Escaping vs Non-Escaping Closures

03

Optionals Deep Dive

4 Chapters - 0/4 Completed

Optional Binding (if let, guard let)

Nil-Coalescing Operator

Optional Chaining

Force Unwrapping, Risks & Best Practices

04

Structs & Classes

7 Chapters - 0/7 Completed

Defining Structs

Defining Classes

Value Types vs Reference Types

Value Types vs Reference Types

Properties (stored, computed, lazy)

Property Observers (willSet/didSet)

Methods & self

05

Enumerations

4 Chapters - 0/4 Completed

Basic Enums

Associated Values

Raw Values

Enums with Methods

06

Error Handling

3 Chapters - 0/3 Completed

Defining Error Types

do-catch, try, try?, try!

Propagating Errors with throws

empty starempty starempty starempty starempty star
u
อนุวัฒน์ หนองสระ

Similar Courses

More Swift courses
Swift Foundations: Your First Steps into Coding
Programming
Beginner

Swift Foundations: Your First Steps into Coding

The perfect starting point for anyone curious about programming. Level 1 takes you from a completely blank screen to writing working Swift code with confidence. You'll set up Xcode, print your first "Hello, World!", and learn how Swift stores and works with information, variables, data types, operators, control flow, collections, and strings. Every lesson is built around live, runnable code, quizzes, and interactive challenges, so you're coding from the very first page, not just reading about it. By the end, you'll be ready to build real logic-driven programs and move confidently into functions and object-oriented Swift.

Self-paced
Free
C For Beginners
Programming
Beginner

C For Beginners

In our C Programming course, you'll embark on a journey to master the fundamentals of one of the most influential programming languages in the world. You'll start by understanding the basics: variables, data types, operators, and control flow structures. From there, you'll delve into more advanced concepts like pointers, memory management, and file I/O operations. Through hands-on projects and coding exercises, you'll gain practical experience and develop problem-solving skills essential for software development. By the end of the course, you'll have the confidence and expertise to design, implement, and debug robust C programs, setting a strong foundation for your programming journey.

1 hour
Free
Python From Scratch
Programming
Beginner

Python From Scratch

Welcome to our Python course designed for beginners! This course will guide you through the basics of Python programming, ensuring you have a strong foundation. We aim to make learning Python enjoyable and engaging through real-world examples, practical projects, and interactive exercises.

4 days
Free
Introduction to QBasic
Programming
Beginner

Introduction to QBasic

Learn the fundamentals of QBASIC, a beginner-friendly programming language designed to introduce you to the world of coding. This course covers basic syntax, programming concepts, and practical examples to help you write and debug simple programs. Perfect for beginners looking to develop a foundation in programming.

2
Free