Nil Coalescing

577 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
2K
Nil Coalescing retweetledi
Natalia Panferova
Natalia Panferova@natpanferova·
We can easily animate insertion and removal of SF Symbols in SwiftUI with symbol effect transitions. We don't even need to apply an implicit animation with the animation(_:value:) modifier or wrap the state modification in a withAnimation {} call. You can learn more about different ways to animate SF symbols in my blog post: nilcoalescing.com/blog/Animating…
English
3
8
100
5K
Nil Coalescing retweetledi
Natalia Panferova
Natalia Panferova@natpanferova·
The April issue of the Nil Coalescing newsletter has been sent out and is now available online 📬 I shared links to talks from try! Swift Tokyo, the reception of 'The SwiftUI Way' book, and new content this month: nilcoalescing.com/newsletter/202…
English
0
3
17
1.7K
Nil Coalescing retweetledi
Natalia Panferova
Natalia Panferova@natpanferova·
The onChange() modifier in SwiftUI has gone through some API changes since it was introduced. I wrote an overview of the modern variants, including how to access old and new values, and trigger the action on initial appearance: nilcoalescing.com/blog/OverviewO…
English
2
7
56
4.2K
Nil Coalescing
Nil Coalescing@NilCoalescing·
Starting with Swift 6.2 and iOS 26, EnumeratedSequence conforms to RandomAccessCollection, allowing enumerated() to be used directly in ForEach and List views in SwiftUI: nilcoalescing.com/blog/UsingEnum…
English
1
10
63
4.7K
Nil Coalescing retweetledi
Natalia Panferova
Natalia Panferova@natpanferova·
SwiftUI's List loads row views lazily, creating content only for rows near the visible region. For this to work, SwiftUI needs to be able to determine the number of views a ForEach element resolves to without evaluating the closure. Two common patterns prevent this: - Using an `if` statement inside ForEach changes the number of views per element, so SwiftUI has to evaluate every closure upfront to get the count. - Wrapping rows in AnyView hides the type information SwiftUI needs to determine the view count, with the same result. In both cases, SwiftUI ends up evaluating the ForEach closure for every element in the collection before any rows are displayed. You can learn more about maximizing the performance of dynamic lists in SwiftUI and common pitfalls from the sample chapter of my book "The SwiftUI Way". You can read it for free here: books.nilcoalescing.com/the-swiftui-wa…
Natalia Panferova tweet media
English
6
21
246
21.9K
Nil Coalescing
Nil Coalescing@NilCoalescing·
Adding remote push notifications capability to an iOS app is a complex process that includes several steps and components. This article walks you through all the necessary setup: nilcoalescing.com/blog/RemotePus…
English
0
3
30
2.1K
Nil Coalescing
Nil Coalescing@NilCoalescing·
Extend your app’s functionality to the entire macOS system by implementing services that users can access from the context menu or the Services menu in other apps: nilcoalescing.com/blog/macOSSyst…
English
0
3
24
2K
Nil Coalescing retweetledi
Natalia Panferova
Natalia Panferova@natpanferova·
It's my birthday 🎊 To celebrate and to continue the tradition I'm doing a special book sale just for today! You can get any of my Swift and SwiftUI books and bundles with a 20% discount using the coupon code BD2026 applied at checkout: books.nilcoalescing.com
English
11
10
48
3.8K
Nil Coalescing
Nil Coalescing@NilCoalescing·
Build a stretchy image header in SwiftUI using the visualEffect() modifier, scaling the image on pull-down without tracking scroll offset or modifying its frame: nilcoalescing.com/blog/StretchyH…
English
0
6
47
2.9K
Nil Coalescing retweetledi
Natalia Panferova
Natalia Panferova@natpanferova·
Got home from Japan and try! Swift Tokyo, the trip was amazing! It was so good to meet the local iOS community and explore Tokyo a bit. Thank you so much for having me ☺️ #tryswift
Natalia Panferova tweet mediaNatalia Panferova tweet mediaNatalia Panferova tweet mediaNatalia Panferova tweet media
English
1
5
97
4.8K