Swift Accelerometer and Gyroscope Examples in Swift Learn how to read motion data (accelerometer, gyroscope, and magnetometer) from iOS devices in Swift.
Swift Play A Sound Using AVAudioPlayer In Swift Learn how to load a sound file or sound effect, configure an AVSession to play sound, and play a sound file using AVAudioPlayer in Swift.
Create, Throw, and Handle Custom Errors In Swift Learn how to create, extend, throw, and handle custom error types in Swift.
Swift Rounding Floats and Doubles in Swift Learn how to round decimal numbers up, down, and with custom decimal precision in Swift.
Swift Get User Location In Swift With CLLocationManager Learn how to request location permissions, get updates on a user’s location, and check location permissions in Swift.
Swift How To Create A Custom Delegate In Swift Learn how to use the Delegate pattern by defining a protocol and creating a Delegate in Swift.
let vs var in Swift Learn what is the difference between let and var in Swift, and when to use var and let variables.
Swift Parallel For Loops in Swift Learn how for loops can be implemented as parallel for loops using DispatchQueue and DispatchGroup in Swift.
Swift The Swift Guard Keyword Learn about Swift guard with examples for guard else throw, guard let optional, guard available, guard multiple conditions, and guard case enum.
Swift The Swift Defer Keyword Learn about defer in Swift with examples for defer after return, defer completion, defer logic, and defer return value.
Swift Delay A Function Call and Sleep A Thread in Swift Learn how to delay execution of a function and block a thread with sleep in Swift.
Swift Top 50 Active Swift CocoaPods For iOS See the top 50 actively maintained Swift Cocoapods ranked by number of GitHub stars.
Swift Strong vs Weak vs Unowned In Swift With Examples Learn the differences between strong, weak, and unowned references in Swift with examples
Swift Read and Save Passwords Using Keychain in Swift Learn how to use Keychain Services to access and save secure data on iOS and macOS in Swift
Swift Capture Javascript Errors From a WKWebView in Swift Learn how to capture Javascript errors using WebKit Message Handlers in Swift and the Safari Web Inspector
Swift WKWebView Javascript Alerts on iOS and macOS in Swift Learn how to support Javascript alerts, confirmation, and prompts on iOS and macOS using a WKWebView and Swift
Swift Contributing to Swift for the First Time A step-by-step walkthrough of contributing to Swift for the first time using my first Swift contribution.
Swift UICollectionViewCell with Rounded Corners and Drop Shadow in Swift Learn how to add a drop shadow and rounded corners to a UICollectionViewCell in Swift
Swift Convert a String into an Int, Float, Boolean, and Data in Swift Learn how to transform a String into an Int, Double, Float, Bool, and Data in Swift
Swift Scale, Rotate, Fade, and Translate NSView Animations in Swift Everything you need to know about anchorPoint and layers to create smooth animations on macOS in Swift
Swift Download Image or File From URL In Swift 5 Using URLSession Download and save files and images to a cache in Swift without Cocoapods.
Swift How To Parse JSON in Swift Using Codable and JSONSerialization Parse, encode, and decode between JSON, Dictionary, and Array in Swift.
Swift Core Data String Queries Using NSPredicate In Swift Learn how to find an exact string, regex search, and more in Core Data.
Swift NSButton With A Gradient Background in Swift Learn how to add a gradient background to an NSButton