If you are interested in video lessons on how to write Unit tests and UI tests to test your Swift mobile app, check out this page: Unit Testing Swift Mobile App
Classes in Swift
- Create a new Class
- Implement a Singleton Class
- Class Extension example in Swift
- Comparable protocol. Compare custom objects
Functions in Swift
- Declare a function in Swift
- Declare a function with a default parameter value
- Declare a function with variadic parameters in Swift
- Nested Functions in Swift: A Comprehensive Guide
Swift Closures
- Swift Closure: A Detailed Guide for Beginners,
- Closures With Multiple Parameters in Swift: A Beginner’s Guide.
Dictionaries in Swift
- Create an Empty Dictionary
- Add Item to a Dictionary
- Loop Through a Dictionary
- Remove Item From Dictionary
- Remove All Items From a Dictionary
Arrays in Swift
- Create an Empty Array
- Create an Array with Default Values
- Check if Array is empty
- Loop Through Elements in Array
- Loop Over Array of Elements with Index
- Remove all elements from Array
- Remove element from an array at a specified index
- Sort Array of custom objects in Swift in Ascending and Descending order
Strings
- Case Insensitive Comparison of Strings in Swift
- Check if a String value is Empty
- Compare if two Strings are equal
Storing Data, Writing, and Reading in Swift
- NSUserDefaults – Writing and Reading values of different data types
- Write String value into a File
- Read File content example in Swift
- Read and Write String values into a file
- Check if a file at a specified location exists
- Delete File
- Load content of a property file in Swift
- Download file from a remote URL in Swift
- Load HTML File from App Bundle
Error Handling in Swift
Date and DateComponents
Background Threads in Swift
Buttons in Swift
- Create UIButton Programmatically
- UIButton with background image
- Create UIBarButtonItem Programmatically
- Create UIBarButtonItem with Image
- Disable UIButton example in Swift
Working UITextField in Swift
- Create UITextField programmatically in Swift
- Set UITextField keyboard return key as a Done button and dismiss the keyboard
- Check If UITextField Contains Value
UITextView
- Create UITextView programmatically in Swift
- Customize UITextView programmatically in Swift
- Dismiss keyboard when the user taps away UITextView
UISwitch in Swift
UISlider
Working with UIView
UIStepper
UISegmentedControl
UINavigationBar
- Customize UINavigationBar Appearance Programmatically via AppDelegate Swift File
- Customize UINavigationBar Appearance Programmatically in UIViewController
UIImageView & UIImage
- Create Circular UIImage programmatically
- Make UIImage Corners Rounded programmatically
- UIImageView and UIImage. Load image from a remote URL.
UIWebView
- Create UIWebView programmatically and load remote web page using NSURL
- Create UIWebView Programmatically and Render HTML Code
WKWebView
UIDatePicker
UIImagePickerController
UIActivityIndicatorView
UITabBarController
UIAlertController or Dialog messages in Swift
- Create UIAlertController with OK Button
- Create UIAlertController with OK and Cancel buttons
- UIAlertController with two buttons and UITextField
- ActionSheet example in Swift
UITableView
UICollectionView
- Create UICollectionView in Swift programmatically
- UICollectionView. Load list of images from remote server URL
Presenting ViewController(s)
- Navigate from AppDelegate.swift to a Different ViewController
- Present New ViewController
- Set Window Root View Controller
- Present ViewController in NavigationController
Network Communication
- Send HTTP GET Request. Example in Swift.
- Send HTTP POST Request. Example in Swift and PHP
- Convert JSON String into NSDictionary in Swift
Screen size and device orientation
- Determine main screen bounds, height, and width
- Determine device orientation
- Disable Rotation of UIViewController
- Disable Rotation of UIViewController which is embedded into UINavigationController
AVPlayer, AVPlayerItem, and AVPlayerLayer. Play Music.
- AVPlayer. Play Music MP3 File From a Remote URL In Swift
- Add Playback Slider to AVPlayer. Example In Swift
- AVPlayer. Add Periodic Time Observer to Update Music Playback Slider
- Determine User’s Current Location Example in Swift
- Creating MKMapView in Swift programmatically
- Drop a Pin on a MapView at user’s current location
- MKAnnotationView – Display Custom Pin Image and handle tap events
Touch ID Verification
Regular Expressions
Local and Remote Notifications
Determine Current iOS Device Model Name