Natalia Panferova

86 Followers
335 Following
252 Posts
Software Engineer | iOS | macOS | Swift | SwiftUI | Previously SwiftUI at Apple | Author of books for Swift developers: https://books.nilcoalescing.com
Nil Coalescing bloghttps://nilcoalescing.com/blog
Integrating SwiftUI into UIKit Apps bookhttps://books.nilcoalescing.com/integrating-swiftui
Swift Gems bookhttps://books.nilcoalescing.com/swift-gems
Exsto drawing apphttps://exsto.app

Creating a seamless user experience in Swift involves managing and clearly communicating errors. User-friendly descriptions and recovery suggestions for custom errors help guide users in resolving issues, making applications more intuitive: https://nilcoalescing.com/blog/UserFriendlyDescriptionsAndRecoverySuggestionsForCustomErrorsInSwift/

#iOSDev #Swift

User-friendly descriptions and recovery suggestions for custom errors in Swift

Guide users through resolving issues and make your Swift applications more intuitive and supportive by defining user-friendly descriptions and recovery suggestions for custom errors.

Nil Coalescing

If you are using Swift Charts in your projects, check out my blog posts to explore some advanced techniques 📈:

Area chart with a dimming layer: https://nilcoalescing.com/blog/AreaChartWithADimmingLayer/

Using Foundation Measurements for values in Swift Charts: https://nilcoalescing.com/blog/UsingMeasurementsFromFoundationAsValuesInSwiftCharts/

Fill bar marks with gradient: https://nilcoalescing.com/blog/FillBarMarksWithGradient/

#SwiftUI #Swift #iOSDev

Area chart with a dimming layer up to the current point in time

Create a chart with the Swift Charts framework to show UV index throughout the day inspired by the iOS Weather app that dims the area up to the current time.

Nil Coalescing

The Swift language constructs `self`, `Self`, and `Self.self` can be confusing, even for experienced developers.

🔹 `self` refers to the instance of the type within its own instance methods.
🔹 `Self` refers to the type that conforms to a protocol, allowing for polymorphic behavior.
🔹 `Self.self` is used to refer to the metatype of the type, essentially the type of the type itself.

You can read more on these constructs in my blog post: https://nilcoalescing.com/blog/UseCasesForSelfInSwift/

#Swift #iOSDev

Use cases for self, Self and Self.self in Swift

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.

Nil Coalescing

New blog post: Testing Swift Testing

https://www.basbroek.nl/testing-swift-testing

Testing Swift Testing

At WWDC24, Apple introduced Swift Testing, which is a new way to write tests in Swift, practically replacing XCTest for unit tests. And it’s great. There are two sessions that give a great introduction to the new framework, and I recommend checking them out: Meet Swift Testing Go further with Swift Testing

Bas’ Blog

The Swift language constructs `self`, `Self`, and `Self.self` can be confusing, even for experienced developers.

🔹 `self` refers to the instance of the type within its own instance methods.
🔹 `Self` refers to the type that conforms to a protocol, allowing for polymorphic behavior.
🔹 `Self.self` is used to refer to the metatype of the type, essentially the type of the type itself.

You can read more on these constructs in my blog post: https://nilcoalescing.com/blog/UseCasesForSelfInSwift/

#Swift #iOSDev

Use cases for self, Self and Self.self in Swift

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.

Nil Coalescing

Scenes in SwiftUI are essential for managing our app's UI and behavior. Defining custom scenes is a powerful feature that allows for modular, maintainable code, simplifying complex interfaces. Check out my new blog post to learn how: https://nilcoalescing.com/blog/CustomScenesInSwiftUI/

#SwiftUI #Swift #iOSDev

Defining custom scenes in SwiftUI

SwiftUI custom scenes enable the creation of modular, maintainable code, allowing for precise management of complex user interfaces and behavior across different platforms.

Nil Coalescing

Check it out, we had fun with this one!

Also a big shoutout to @slazaruseth for his excellent work on these new APIs!
https://indieweb.social/@curtclifton/112604264292619566

Curt Clifton (@[email protected])

Check out “Demystify SwiftUI containers” where Matt explains how containers like List work in SwiftUI and shows you how to create your own custom containers that support ForEach, Section, and container-specific modifiers. Discover what it means for ForEach, Group, and EmptyView to both _be_ views and _generate_ views. Along the way, Matt solves his own vexing problem too. Don’t miss the exciting conclusion! https://developer.apple.com/wwdc24/10146

Indieweb.Social
For a while, presenting a form sheet in SwiftUI, equivalent to the UIModalPresentationStyle.formSheet, was a challenge. On iPadOS 18, with the new presentationSizing() modifier, we can easily achieve this using the form sizing option! #WWDC24 #iOSDev #SwiftUI
https://nilcoalescing.com/blog/FormSheetInSwiftUI/
Present a form sheet in SwiftUI

Starting from iPadOS 18, SwiftUI now allows us to present a form sheet, similar to UIModalPresentationStyle.formSheet.

Nil Coalescing

Last chance to get my books 'Integrating SwiftUI into UIKit Apps' and 'Swift Gems' with #WWDC24 discount: https://books.nilcoalescing.com

The offer ends in a few hours! #iOSDev #Swift #SwiftUI
https://mastodon.cloud/@natpanferova/112585225641026722

Nil Coalescing Books

Swift and SwiftUI books from Nil Coalescing

Nil Coalescing Books

To celebrate #WWDC24, I'm offering a 30% discount on both of my books: 'Integrating SwiftUI into UIKit Apps' and 'Swift Gems'! Don't miss out on this special offer! Learn more: https://books.nilcoalescing.com

#iOSDev #Swift #SwiftUI

Nil Coalescing Books

Swift and SwiftUI books from Nil Coalescing

Nil Coalescing Books