Adjusting line height in SwiftUI on iOS 26
iOS 26 introduces the lineHeight(_:) modifier and AttributedString.LineHeight attribute for adjusting vertical spacing between lines of text in SwiftUI.
On iOS 26, we have a new #SwiftUI modifier, lineHeight(_:), for adjusting the distance between the baselines of two subsequent lines of text. There are a few options available in this new API, so I thought I would look through how they behave in practice: nilcoalescing.com/blog/Adjusti...
04.03.2026 08:27
π 11
π 5
π¬ 0
π 0
Nil Coalescing - Nil Coalescing Newsletter - February 2026
February is the shortest month of the year, yet for our team at Nil Coalescing, it was an incredibly packed one. We spent most of it on the move! I recently had the opportunity to speak at the ARCtic ...
The February issue of the Nil Coalescing newsletter is out π¬
Itβs been a busy month for our team with lots of travel! I've shared a glimpse into my "Swift's Hidden Gems" talk from the ARCtic Conference, a new SwiftUI post, and plans for the near future.
nilcoalescing.com/newsletter/2...
27.02.2026 22:42
π 7
π 2
π¬ 0
π 0
Isolate SwiftUI animations to specific attributes
Precisely scope animations to specific animatable attributes by using the animation(_:body:) API introduced in iOS 17.
For precise control over which attributes should animate in #SwiftUI, especially in generic components that accept arbitrary content, we can use the animation(_:body:) API introduced in iOS 17 to avoid accidental animations.
I've written a post about it: nilcoalescing.com/blog/Isolate...
18.02.2026 06:56
π 18
π 4
π¬ 0
π 0
Sunset over Iso SyΓΆte with snow covered trees in the foreground shaped by heavy frost, glowing orange light from the low winter sun on the horizon, and an expansive frozen forest stretching into the distance under a clear blue sky
Natalia Panferova standing in a snowy park in Oulu, wearing a dark winter coat, knit hat, scarf, and boots, smiling on a snow covered path with frost covered trees and a dark sculpture visible in the background
Reindeer standing in a snowy forest enclosure at a reindeer farm, partially framed by frost covered evergreen branches, with antlers visible and snow covering the ground and surrounding trees
Natalia Panferova speaking on stage at the ARCtic Conference, standing at a podium under blue stage lighting with a large screen behind her displaying a Swift logo with heart shaped balloons
Last week I had an amazing opportunity to be part of the ARCtic Conference and present a talk on lesser known Swift language features. I really enjoyed the conference and my stay in Lapland βοΈ βοΈ π¦ Thank you to all the organizers, speakers and attendees!
17.02.2026 09:44
π 14
π 2
π¬ 0
π 0
SwiftUI Fundamentals
The essential guide to SwiftUI core concepts and APIs
Yesterday I joined a book club session with iOS developers at Expedia who have been reading SwiftUI Fundamentals (books.nilcoalescing.com/swiftui-fund...). We talked through less obvious parts of SwiftUI, and they shared very positive feedback about the book. Made writing it feel worthwhile π
30.01.2026 22:57
π 10
π 2
π¬ 0
π 1
Nil Coalescing - Nil Coalescing Newsletter - January 2026
In this issue of the newsletter, I want to share some insights from iOS Conf SG, including the main ideas from my own talk, as well as a few learnings from other talks at the conference. I hope you wi...
The January issue of the Nil Coalescing newsletter has been sent out and is now available online!
I shared some insights from iOS Conf SG, the main ideas from my own talk on building a SwiftUI mindset, and also a few learnings from other talks: nilcoalescing.com/newsletter/2...
#iOSDev #SwiftUI
28.01.2026 09:26
π 9
π 3
π¬ 0
π 0
Natalia Panferova speaking on stage at iOS Conf SG, presenting a talk titled "The SwiftUI Mindset"
Group photo of speakers, organizers and attendees gathered at iOS Conf SG
Natalia Panferovaβs iOS Conf SG speaker badge displayed with RevenueCat plush toys and photo booth printouts on a table
I had a great time at iOS Conf SG last week! I really enjoyed chatting with developers in the iOS community, learning from other speakers, and sharing my SwiftUI talk. Big thank you to all the organizers and volunteers for such a great conference experience π€©
#iOSConfSG
26.01.2026 09:02
π 17
π 3
π¬ 0
π 0
Defining custom string interpolation behavior in Swift
Extend Swiftβs string interpolation to define custom behavior, such as value formatting, directly inside string literals.
Swiftβs string interpolation system is more powerful than it first appears. Beyond simple value substitution, it can be extended to apply custom logic when values are interpolated. Iβve published a post showing how it can be done: nilcoalescing.com/blog/Definin...
#SwiftLang
13.01.2026 06:06
π 12
π 3
π¬ 0
π 0
Promotional graphic announcing Natalia Panferova as a speaker at ARCtic Conference, featuring Natalia standing by a blue lake and rocky hills, with text highlighting Oulu, Finland and February 10th to 12th, 2026
I'll be speaking at the ARCtic Conference in Oulu, Finland in February!
I've seen a lot of really positive feedback from speakers and attendees of the previous edition, and I'm really looking forward to being part of the next one!
arcticonference.com
#iOSDev #SwiftLang
12.12.2025 11:01
π 15
π 2
π¬ 0
π 0
A festive watercolor illustration of two holiday coffee drinks topped with whipped cream and candy cane pieces, surrounded by ornaments, holly, and softly falling snow against a colorful blurred background
New limited edition coffee recipes are now available in Breve!
Discover Festive Delights, a collection of cozy holiday drinks crafted to bring comfort, cheer, and a little sparkle to every cup: apps.apple.com/us/app/id674...
#Coffee #CoffeeLovers #iOSApp
10.12.2025 08:30
π 7
π 3
π¬ 0
π 0
Add an inner shadow to a symbol image in SwiftUI
Create a cut out icon effect in SwiftUI by applying a foreground style with an inner shadow to an SF Symbol image.
SwiftUI gives us a lot of control when styling SF Symbols, including custom foreground styles. One simple technique is to apply a foreground style with an inner shadow to make an icon look cut out from its background: nilcoalescing.com/blog/AddAnIn...
#SwiftUI #iOSDev
09.12.2025 05:57
π 14
π 4
π¬ 0
π 0
Last day of the sale!
07.12.2025 07:07
π 6
π 4
π¬ 0
π 0
I find the SwiftUI layout system much more powerful than auto-layout.
Getting a performant layout with auto-layout was close to impossible compared to just implementing a the custom Layout protocol and setting some layout values on the containers views.
06.12.2025 10:26
π 3
π 0
π¬ 0
π 0
Black Friday promotional banner advertising 30% off Natalia Panferova's books: SwiftUI Fundamentals, Swift Gems and Integrating SwiftUI into UIKit apps
My Black Friday book sale will be running for a few more days, until the end of this week. All of my Swift and SwiftUI books are currently 30% off: books.nilcoalescing.com
#iOSDev #SwiftLang #SwiftUI
04.12.2025 07:44
π 5
π 2
π¬ 0
π 1
Initializing @Observable classes within the SwiftUI hierarchy
Learn the recommended ways to initialize and store @Observable classes in SwiftUI views, and see what can go wrong when observable state is managed incorrectly.
It's not always obvious what is the right way to initialize an Observable within the SwiftUI view hierarchy, and what are the consequences of getting it wrong, so I wrote a blog post exploring some common use cases: nilcoalescing.com/blog/Initial...
#iOSDev #SwiftUI
02.12.2025 05:35
π 16
π 4
π¬ 0
π 0
Nil Coalescing - Nil Coalescing Newsletter - November 2025
The festive season is almost here, and it feels like everyone is preparing for the end-of-year break. This month, we've been wrapping up the work we wanted to finish before the holidays and have begun...
The November issue of the Nil Coalescing newsletter has been sent to all the subscribers, and it's now available online: nilcoalescing.com/newsletter/2...
I shared news on my Swift and SwiftUI book updates, Black Friday book deals, recent videos, and my conference plans for next year.
29.11.2025 06:02
π 9
π 2
π¬ 0
π 0
Black Friday promotional banner advertising 30% off Natalia Panferova's books: SwiftUI Fundamentals, Swift Gems and Integrating SwiftUI into UIKit apps
If you are looking to deepen your understanding of SwiftUI, take your Swift code to the next level, or start adopting SwiftUI in existing UIKit projects, donβt miss our Black Friday deal on @natpanferova.bsky.social's books and bundles: books.nilcoalescing.com
#iOSDev #SwiftLang #SwiftUI
26.11.2025 20:26
π 3
π 7
π¬ 0
π 0
Swift Gems
100+ tips to take your Swift code to the next level
I've just released a small update to my book "Swift Gems" with techniques covering features introduced in Swift 6.2, including inline arrays, default values in string interpolation, and some Swift concurrency tips. And itβs currently on sale: 30% off!
books.nilcoalescing.com/swift-gems
#SwiftLang
26.11.2025 06:59
π 9
π 4
π¬ 0
π 1
Integrating SwiftUI into UIKit Apps
A detailed guide on gradually adopting SwiftUI in UIKit projects
I've just released a new version of "Integrating SwiftUI into UIKit Apps", with all the projects updated for iOS 26 and Xcode 26!
And it's currently 30% off as part of my Black Friday book sale: books.nilcoalescing.com/integrating-...
#iOSDev #SwiftUI
20.11.2025 07:42
π 11
π 4
π¬ 0
π 0
Black Friday promotional banner advertising 30% off Natalia Panferova's books: SwiftUI Fundamentals, Swift Gems and Integrating SwiftUI into UIKit apps
My Black Friday book sale has started! All of my Swift and SwiftUI books are now 30% off!
Find out more: books.nilcoalescing.com
#iOSDev #SwiftUI #SwiftLang
19.11.2025 09:13
π 15
π 10
π¬ 0
π 2
Tips for Supporting Dynamic Type in SwiftUI Apps
YouTube video by Nil Coalescing
I've published a new video! I shared some tips for implementing Dynamic Type support in SwiftUI apps, covering system and custom fonts, ScaledMetric API, and dynamicTypeSize environment value: youtu.be/wflWj5l7wlk
#SwiftUI #iOSDev #Accessibility
05.11.2025 07:42
π 10
π 5
π¬ 1
π 0
Two iPhone screenshots of a recipe view in Breve app on iOS 26 and 26.1
I noticed that on iOS 26.1 there are some small improvements to the Liquid Glass tab bar: the selected tab color looks less saturated, making it more readable on top of colorful backgrounds, and the edge effect is stronger.
Here is @brevecoffeeapp.bsky.social on iOS 26 and 26.1:
03.11.2025 08:39
π 25
π 4
π¬ 1
π 0