Latest Updates
Read my latest articles. Browse the archives. Follow the RSS feed. Subscribe to the newsletter to get the latest posts direct to your inbox.
-
URLSessionConfiguration Quick Guide
Are you relying on the default
URLSession
configuration for your network requests? You might want to check what the defaults are and decide if they are right for your app. -
Xcode 12.5 Playground Access To App Types
Xcode 12.5 has enhanced playground support. When you add a new playground to a project it defaults to having access to the types in your App target. This means you are not forced to import frameworks or Swift packages to share code between your app target and the playground.
-
SwiftUI Container Relative Shape
SwiftUI has lots of ways to create rounded rectangles but what if you want to match the corner radius of a widget? Apple added
ContainerRelativeShape
to iOS 14 for that purpose. -
Widget Background and Accent Color
When you create a new Widget you may have noticed that it gets its own asset catalog. As well as the usual
AccentColor
this also contains aWidgetBackground
color. What are these for and how are you supposed to use them? -
SwiftUI Custom View Modifiers
Create your own custom SwiftUI view modifier when you want to reuse a set of modifiers on multiple views. Removing duplication also cleans up and improves the readability of your SwiftUI views.