Nil Coalescing

613 posts

Nil Coalescing banner
Nil Coalescing

Nil Coalescing

@NilCoalescing

Mobile and Web Development | iOS and macOS | Swift | SwiftUI | Server Development | Python | Founded by @natpanferova and @hishnash

Central Otago, New Zealand Katılım Nisan 2022
4 Takip Edilen2.1K Takipçiler
Sabitlenmiş Tweet
Nil Coalescing
Nil Coalescing@NilCoalescing·
“The SwiftUI Way” is a new book by @natpanferova written for SwiftUI developers who want to develop a deeper intuition for working with the framework, recognize potentially harmful anti-patterns, and build more maintainable and performant SwiftUI apps: nilcoalescing.com/blog/TheSwiftU…
English
1
4
21
2.2K
Nil Coalescing
Nil Coalescing@NilCoalescing·
Master programmatic scroll control in SwiftUI using defaultScrollAnchor(_:), scrollPosition(_:anchor:), and ScrollPosition to configure, drive, and read scroll position in your apps: nilcoalescing.com/blog/ModernSwi…
English
1
2
26
1.3K
Nil Coalescing
Nil Coalescing@NilCoalescing·
When we need to compare arrays based on custom criteria in Swift, we can use elementsEqual(_:by:) method. It allows us to define custom comparison logic with a closure, offering more flexibility than using == operator: nilcoalescing.com/blog/CompareAr…
English
0
3
31
1.8K
Nil Coalescing retweetledi
Natalia Panferova
Natalia Panferova@natpanferova·
I wrote a new post about TimelineView in SwiftUI and how it can be used to build views that update periodically or continuously without relying on explicit state changes, making it possible to create dynamic interfaces and visual effects: nilcoalescing.com/blog/TimelineV…
English
0
8
113
5K
Nil Coalescing retweetledi
Natalia Panferova
Natalia Panferova@natpanferova·
To programmatically scroll to an edge, a raw offset, or a view with a provided identity in SwiftUI, we can use the scrollPosition(_:anchor:) modifier. It takes a binding to a ScrollPosition, available from iOS 18: #programmatic-scrolling-with-scrollposition" target="_blank" rel="nofollow noopener">nilcoalescing.com/blog/ModernSwi…
Natalia Panferova tweet media
English
3
5
62
3.3K
Nil Coalescing
Nil Coalescing@NilCoalescing·
BackgroundStyle in SwiftUI exposes hierarchical levels via .secondary, .tertiary, and similar properties, giving us system background colors that adapt to context and color scheme without the need to bridge through UIColor: nilcoalescing.com/blog/Hierarchi…
English
0
3
33
1.8K
Nil Coalescing retweetledi
Natalia Panferova
Natalia Panferova@natpanferova·
We can customize where the scroll view should initially position its content in SwiftUI using the defaultScrollAnchor() modifier and even set a different anchor per situation, for example when the content is smaller than its container: #setting-the-initial-scroll-position" target="_blank" rel="nofollow noopener">nilcoalescing.com/blog/ModernSwi…
Natalia Panferova tweet media
English
0
10
82
4.9K
Nil Coalescing retweetledi
Natalia Panferova
Natalia Panferova@natpanferova·
I've just published a post covering the modern SwiftUI APIs for programmatic scrolling, including defaultScrollAnchor(), scrollPosition(), and others, also highlighting some nuances that are easy to miss: nilcoalescing.com/blog/ModernSwi…
English
3
10
131
7.7K
Nil Coalescing retweetledi
Natalia Panferova
Natalia Panferova@natpanferova·
AI coding agents tend to hardcode spacing in SwiftUI, which can look wrong and cramped when a user adjusts their font size preference. SwiftUI's default container spacing adjusts for Dynamic Type automatically, but if you need custom spacing, consider using the ScaledMetric API.
Natalia Panferova tweet media
English
6
8
110
7.9K
Nil Coalescing
Nil Coalescing@NilCoalescing·
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: nilcoalescing.com/blog/UseCasesF…
English
0
4
26
2.2K
Nil Coalescing
Nil Coalescing@NilCoalescing·
Learn how to build a SwiftUI mindset, use the framework more effectively in your projects and avoid common pitfalls from Natalia Panferova, former SwiftUI Frameworks Engineer at Apple. ▶️ youtube.com/watch?v=Y_Ov-d…
YouTube video
YouTube
Nil Coalescing tweet media
English
0
4
33
2.7K
Nil Coalescing retweetledi
Natalia Panferova
Natalia Panferova@natpanferova·
Excited to share that I'll be speaking at /dev/world on tour in Sydney in July! Can't wait to try out new SwiftUI APIs after WWDC26 and present my learnings 🤩 ontour.devworld.au
English
1
3
21
1.4K
Nil Coalescing
Nil Coalescing@NilCoalescing·
Configure a SwiftUI app to schedule and handle a background fetch task using the Background Tasks framework and the backgroundTask(_:action:) SwiftUI modifier: nilcoalescing.com/blog/Schedulin…
English
2
3
33
2.5K
Nil Coalescing retweetledi
Natalia Panferova
Natalia Panferova@natpanferova·
Starting from iOS 26, we can make a block of text easier to read at a glance by applying a loose line height with the new lineHeight() modifier in SwiftUI. The modifier comes with many overloads to make customized line height adjustments: nilcoalescing.com/blog/Adjusting…
Natalia Panferova tweet media
English
8
9
92
6.3K