SwiftUI Weekly - Issue #52
The curated collection of links about SwiftUI. Delivered every Monday.
News
Celebrating Women’s History Month
This Women’s History Month, we’re so happy to celebrate the amazing women developers in our community. Women have made an immense impact on the Swift ecosystem by building important tools we use every day, creating resources to pass on what they have learned, and more. This post highlights a few outstanding contributions from individuals in the Women in Swift community.
SwiftOnTap
SwiftUI fully documented, with visual examples on every page.
Reading
UI Testing using Page Object pattern in Swift
We talked a lot about different design patterns, which help us maintain the codebase by solving various issues. But what about testing? What can we do to keep our UI tests in a maintainable and consistent state? This week we will talk about the Page Object pattern that allows us to build a foundation for our UI tests.
App architecture basics in SwiftUI
This article is about adding a separated Services-layer to an app. A Services-layer is, in my opinion, the single best app architectural addition you can make, after the basic Model-View separation already implicit in SwiftUI.
How to Create iOS 14 Widgets With WidgetKit
In 2020 Apple came up with an updated vision of widgets and unified their API across platforms. The new WidgetKit framework made widgets more accessible, interactive and increased SwiftUI adoption. Starting with iOS 14, widgets can be presented in multiple sizes and placed on the iOS Home screen, Today View, or macOS Notification Center.
Inspecting SwiftUI views
In Composing SwiftUI views and SwiftUI patterns: passing & accepting views we’ve covered how composition is one of SwiftUI’s most powerful tools at our disposal.
How to show and hide content with DisclosureGroup using SwiftUI
Showing and hiding some parts of information is a vital feature in mobile apps, especially considering that phone screens are much smaller than those on laptops or desktop computers. Now with the new SwiftUI capabilities, we can collapse content with `DisclosureGroup`. Let's see how we could use it in various ways.
Discover Combine on Swift by Sundell
Discover how Apple’s Combine framework can be used to model increasingly complex asynchronous operations as reactive pipelines that emit values over time.
Code
swiftui-animation-library
SwiftUI Animations Library. Useful SwiftUI animations for your next project.
Video
Using UIKit in SwiftUI
In this SwiftUI tutorial, we’ll carry on improving our SwiftUI News App overall UI & UX, by using UIKit in SwiftUI. We’ll look at how we can open up links directly in our app rather opening up Safari.