Instead of initializing SwiftUI views with dependencies, SwiftUI also offers other ways for injecting dependencies. This time let’s take a look on EnvironmentKey which defines a key for inserting objects… Read more Injecting dependencies using environment values and keys in SwiftUI →
Let’s build a container where we can store collections of items conforming to a protocol. All the collections are identified by a case in enum. For making the container reusable,… Read more Persistent reusable container for item collections in Swift →
iOS and macOS got a new framework in WWDC’19 named LinkPresentation. LinkPresentation enables fetching URL previews. Adding LPLinkView for presenting preview LPLinkView is a view subclass meant for rendering LPLinkMetadata.… Read more Loading URL previews using LinkPresentation framework in Swift →