iOS Stack Weekly — Issue#122

Amisha I
Canopas
Published in
2 min readApr 29, 2024

--

Welcome to iOS Weekly — a newsletter on new development and updates of the iOS universe curated by Canopas team, delivered every Monday.

Articles

SwiftUI: Multi-Stage Animation

In this article, they have explored the basic usage of the PhaseAnimator View and the phaseAnimator ViewModifier with how to add a trigger to the Animation and a little trick for only running Animation without adding a trigger!

Error handling in Combine Swift

In this post, we read about the error-handling process and tools in the Combine framework.

A guide to SwiftUI List usage

In this article, we will see programmatically scroll, set the initial visible item, and get notified and perform actions if the first or the last item of the List is reached (for example, loading more data).

SwiftUI Inverting A Boolean Binding

How do you change a SwiftUI binding to a boolean to give the inverted value?

Understand ObservableObject, ObservedObject, StateObject, and EnvironmentObject with Coordinator Pattern

This post explains ObservableObject, ObservedObject, StateObject, and EnvironmentObject practice with the Coordinator pattern of SwiftUI.

SwiftUI Dynamic Property with KeychainStorage example

Based on Apple’s Documentation, the DynamicProperty protocol allows us to create custom Dynamic Property Wrappers that can trigger view updates and that’s amazing!

How to run asynchronous code in Swift Playground correctly?

Swift Playground is a great tool for quick experimentation with Swift code. While most of the time, we just need synchronous code for such tests.

Be Careful When You Initialize a State Object

if explicitly you have to initialize a @StateObject, the property wrapper’s initialization parameter is an escaping closure called thunk, not an object called wrappedValue.

SwiftUI Previews-based architecture

SwiftUI Previews have been a tremendous improvement for DX since their introduction back in 2019. This time, we needed them more than ever, so they’ve started experimenting with possible architectures for them.

Suggest a link for the upcoming weekly

Suggestions and feedback are more than welcome!

Don't hesitate to contact us at Canopas Twitter handle @canopas_eng with your content or feedback, we will consider it in our next weekly.

--

--