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.
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.
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 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 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 Full-Screen iOS Loading Animation in Swift Learn how to fade-in a loading animation with spinning activity indicator.
Swift Lighter and Darker UIColors in Swift Implement a UIColor extension to get lighter and darker colors from a UIColor.
Swift Formatting UTC and Local Dates in Swift Print, format, and parse UTC and local timezone Dates in Swift.
Swift URLSession GET and POST HTTP Requests in Swift Learn how to make GET and POST HTTP requests in Swift using URLSession, including setting HTTP headers and body parameters.
Swift UITextField with Custom Text Padding in Swift Implement a UITextField with custom text spacing in Swift
Swift Animate With The iOS Keyboard In Swift Create smooth layout animations when the iOS keyboard shows and hides.