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
SwiftUI will create and discard the view struct multiple times throughout the view lifecycle, so it will create fresh instances of its properties each time. It just doesnβt use the recreated observable class instances and discards them.
06.12.2025 22:14
π 0
π 0
π¬ 1
π 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
ScrollView snapping in SwiftUI
Explore SwiftUI APIs for customizing scroll behavior, including paging and view-aligned snapping, and learn what to watch out for to avoid unexpected results.
Explore SwiftUI APIs for customizing scroll behavior, including paging and view-aligned snapping, and learn what to watch out for to avoid unexpected results: nilcoalescing.com/blog/ScrollV...
#iOSDev #SwiftUI
03.12.2025 22:19
π 12
π 2
π¬ 0
π 0