If you've seen the WWDC What's new in Swift? [https://developer.apple.com/videos/play/wwdc2022/110354/] video, you've likely seen the updates to the if let and guard let syntax. Prior to Swift 5.7, it was common to unwrap an Optional variable and assign to a variable with
It’s always bugged me that Apple removed the Command + T shortcut to toggle Slow Animations. Using the following approach, you can restore this shortcut and add custom shortcuts to any Xcode or iOS Simulator settings. In System Preferences, select Keyboard -> App Shortcuts -> + Then, just specify your preferred
We'll see how we can use SwiftGen to add type-safety to our project's resources and enable us to write cleaner code.
Introduction You’ve likely used UUIDs in projects before and assumed them to be unique. Today, we’ll take a look at the main aspects of the implementation and understand why UUIDs are practically unique, though an incredibly small potential for duplication exists. The modern-day implementation of UUIDs can be
Anyone with any programming experience understands that computers are deterministic machines. If you provide the same input, you’ll always get the same output. That’s why having computers generate something by chance is trickier than it may seem. Computers use random numbers for everything from cryptography to gambling, generative