Tagged with watchOS
- 09. Links for September 9, 2024
Links for September 9, 2024
- 09. Sometimes, we write code that needs set some state or perform some work at the start of a function and at the end of that same function we might have to reset that state, or perform some cleanup…
What is defer in Swift?
- 09. SwiftData adds predicate expressions in iOS 18.
SwiftData Expressions
- 05. At WWDC24, Apple introduced Swift Testing, which is a new way to write tests in Swift, practically replacing XCTest for unit tests. And it’s great. There are two sessions that give a great introduction to the new framework, and I recommend checking them out: Meet Swift Testing Go further with Swift Testing
Testing Swift Testing
- 05. Links for September 5, 2024
Links for September 5, 2024
- 14. Links for August 14, 2024
Links for August 14, 2024
- 14. Learn how you can decide whether a derived property makes sense as a computed property or should be a function instead.
Deciding between a computed property and a function in Swift
- 11. Links for August 11, 2024
Links for August 11, 2024
- 11. “Learn how you can use the if case let syntax to perform complex pattern matching against enums with associated values”
if case let in Swift explained
- 05. “Macros in Swift allow you to extend the compiler with custom build errors and code generation to eliminate extraneous boilerplate code.”
Swift Macros: Extend Swift with New Kinds of Expressions
- 05. Links for August 5, 2024
Links for August 5, 2024
- 29. Links for July 29, 2024
Links for July 29, 2024
- 29. Unofficial index of WWDC sessions.
WWDC Index
- 22. Links for April 22, 2024
Links for April 22, 2024
- 22. This has come up several times on the forums, but I've never written it up in a standard place, so here it is: **There are only three ways to get run-time polymorphism in Swift.** Well, three and a half.
Run-time Polymorphism in Swift
- 25. Links for June 25, 2023
Links for June 25, 2023
- 25. Use Xcode to develop a multiplatform app
Use Xcode to develop a multiplatform app
- 25. Links for February 25, 2021
Links for February 25, 2021
- 25. Even outside of the pandemic this would be a useful feature for the edge cases where Face ID doesn’t recognize you.
How ‘Unlock With Apple Watch’ While Wearing a Face Mask Works in iOS 14.5