Go to w3schools.com
Close the exercise
More Swift Exercises
Close menu
Go to w3schools.com
Sign in to track your progress
×
Sign in

Swift Exercises

Introduction3 q
Get Started3 q
Syntax3 q
Statements3 q
Output3 q
Output Numbers3 q
Comments3 q
Variables3 q
Print Variables3 q
Variables Multiple3 q
Identifiers3 q
Constants3 q
Variables Reallife3 q
Data Types3 q
Numbers3 q
Booleans3 q
Characters3 q
Type Casting3 q
Operators3 q
Operators: Arithmetic3 q
Operators: Assignment3 q
Operators: Comparison3 q
Operators: Logical3 q
Operators: Precedence3 q
Strings3 q
Strings: Concatenation3 q
Strings: Numbers3 q
Strings: Special Characters3 q
Strings: Unicode3 q
Arrays3 q
Arrays Loop3 q
Arrays: Slices3 q
Arrays: Indices & Bounds3 q
Arrays: Multidimensional3 q
Arrays Real-Life3 q
Ranges3 q
If / Else3 q
If3 q
Else3 q
Elseif3 q
If Shorthand3 q
Nested If3 q
If Logical3 q
If Reallife3 q
Switch4 q
While Loop4 q
Repeat While Loop3 q
While Reallife3 q
For Loop3 q
For Nested3 q
Foreach Loop3 q
For Reallife3 q
Break & Continue3 q
Collections3 q
Sets3 q
Dictionaries3 q
Collections: Operations3 q
Collections: Sorting3 q
Collections: Mutability3 q
Collections: Protocols3 q
Functions3 q
Optionals3 q
Enums3 q
Closures3 q
Tuples & Typealiases3 q
OOP3 q
Classes & Objects3 q
Structs3 q
Class Vs Struct3 q
Class Properties3 q
Class Methods3 q
Self Keyword3 q
Inheritance3 q
Polymorphism3 q
Protocols3 q
Generics3 q
Extensions3 q
Access Control3 q
Initializers3 q
Deinitializers3 q
Value Semantics & COW3 q
Equatable & Comparable3 q
Error Handling3 q
Concurrency3 q
Memory Management3 q
Swift Package Manager3 q
SwiftUI Intro3 q
UI Project Setup3 q
SwiftUI Layout3 q
UI Layout Stacks3 q
UI Layout Spacers Alignment3 q
UI Layout Frames Padding3 q
UI Layout Grids3 q
UI Layout Geometryreader3 q
UI Layout Safearea3 q
UI Layout Lazy Stacks3 q
SwiftUI Navigation3 q
UI Navigation Stack3 q
UI Navigation Link3 q
UI Navigation Tabview3 q
UI Navigation Sheets3 q
UI Navigation Deeplinks3 q
UI Navigation Programmatic3 q
UI Navigation Destination3 q
UI Navigation Toolbar3 q
SwiftUI Data Flow3 q
UI State3 q
UI Binding3 q
UI Observedobject3 q
UI Environmentobject3 q
UI Environment3 q
SwiftUI Lists & Forms3 q
UI List3 q
UI Foreach3 q
UI Section3 q
UI Form3 q
UI Inputs3 q
UI List Swipe Actions3 q
UI List Editmode3 q
UI List Styles3 q
SwiftUI Animations3 q
UI Anim Implicit3 q
UI Anim Explicit3 q
UI Anim Transitions3 q
UI Anim MatchedGeometry3 q
UI Anim Spring3 q
UI Anim Curves3 q
SwiftUI Gestures3 q
UI Gesture Tap3 q
UI Gesture Longpress3 q
UI Gesture Drag3 q
UI Gesture Composing3 q
UI Gesture Magnification3 q
UI Gesture Rotation3 q
SwiftUI Modifiers & ViewBuilder3 q
UI Modifiers3 q
UI Viewbuilder3 q
UI Custom Modifiers3 q
SwiftUI Previews3 q
UI Previews Variants3 q
UI Previews Darkmode3 q
SwiftUI Accessibility3 q
UI Accessibility Labels Actions3 q
UI Accessibility Dynamic Type3 q
UI Accessibility Focus3 q
SwiftUI Styling & Theming3 q
UI Color Schemes3 q
UI Materials3 q
UI Theming3 q
Networking (URLSession)3 q
UserDefaults3 q
Core Data3 q
MVVM3 q
SwiftUI Storage3 q
SwiftUI Testing3 q
Privacy & Permissions3 q
Push Notifications3 q
Widgets & Extensions3 q
Background Modes3 q
Core Location3 q
App Clips3 q
Keychain3 q
Cloudkit3 q
Filesystem3 q
Background URLSession3 q
MapKit3 q
Localization3 q
Accessibility3 q
App Privacy Listing3 q
In-App Purchases3 q
Analytics & Crash Reporting3 q
Testing with XCTest3 q
Assets & Icons3 q
Signing & Distribution3 q
TestFlight & App Store3 q
Ship Your First App3 q


by w3schools.com











 





Wrong Answer!













Completed

You have already completed these exercises!

Do you want to take them again?










×
Close the exercise

Congratulations!


You completed the Swift Swift Package Manager Exercises from W3Schools.com



Share on: