Explore different ways to work with SwiftUI environment, including reading and setting values, creating custom environment keys, and using the environment to pass down actions and observable classes.
Discover how to use the @Observable macro in SwiftUI and its advantages over ObservableObject, such as more efficient view updates and simplified code management.
This post explains how to use recursive enums in Swift, including the indirect keyword, to effectively model and manage complex, hierarchical data structures.
A simple method for rendering quadratic Bézier curves on the GPU in Metal without pre-processing geometry.
Sorting arrays in Swift can be made more concise and readable by using comparison operators as closures in the sorted(by:) method.
Starting from iPadOS 18, SwiftUI now allows us to present a form sheet, similar to UIModalPresentationStyle.formSheet.
Take advantage of the new macOS 15 API to update SwiftUI views when modified keys are pressed.
Learn how to use MapKit and SwiftUI to apply a gradient that follows a polyline, enhancing the visual appeal of your maps.
Explore the practical applications and distinctions of self, Self, and Self.self in Swift, clarifying their roles in instance referencing, protocol conformance, and metatype access.
This post will walk you through all the necessary setup so that you can enable remote push notification functionality in your iOS project.
Visualise data distributions by building a histogram and a 2D density plot with the new Swift Charts framework.
Take a closer look at AttributedString type and different attribute scopes it can contain. Explore how Apple system frameworks interpret available attributes and how to create your own.