View profile

Swift Discovery - Issue #5

Swift Discovery
Swift Discovery
Good day to you my friend. Welcome to another issue of Swift Discovery 👋

Yay Swift 5.4 is finally released. I can’t wait to officially use resultBuilder in my apps. Read the announcement for an overview, and if you want to get more examples about Swift 5.4 be sure to check Paul Hudson What’s new in Swift 5.4 article
Xcode 12.5 includes SDKs for iOS 14.5, iPadOS 14.5, tvOS 14.5, watchOS 7.4, and macOS Big Sur 11.3 and Swift 5.4 toolchain. The thing that excites me more is that Simulator can now record video and export as GiF, something I needed to use simctl command.
If you want to download Xcode as dmg directly, I can recommend xcoderelease
Testing iOS Apps
I haven’t seen Krzysztof Zabłocki blogs for a while. This article contains some good advices for writing unit tests. From plain XCTest to BDD style.
SwiftUI In Production
I’ve been following Peter Steinberger articles about his SwiftUI journey, and this is sum up of how they use SwiftUI in their real world framework PSPDFKit. Learn the current state of SwiftUI and the caveats you might encounter.
Drop Shadow in SwiftUI
Drop shadow is subtle but very important tool to ensure better design. Learn some shadow modifier attributes in this article by Gabriel Theodoropoulos
Four ways to customize TextFields
SwiftUI has some built-in text field styles conforming to TextFieldStyle protocol. Learn other different ways you can customize text fields including introspection with Federico Zanetello
Getting Ready for App Tracking Transparency
Starting iOS 14.5, iPadOS 14.5, and tvOS 14.5. With the upcoming public release, all apps must use the AppTrackingTransparency framework to request the user’s permission to track them or to access their device’s advertising identifier. Apple has been pushing this for quite some time since last year WWDC, learn some details from Lee Kah Seng
Modifier is a core feature in SwiftUI to apply styling in your view and view hierarchy. One missing guide is how to conditionally apply it. Learn in this article by Antoine for different ways and best practices to do it. From run time to platform check. But please be aware by the performance cost as conditional degrades SwiftUI diffing power
Open Source
TextBuilder: Like a SwiftUI ViewBuilder, but for Text
With resultBuilder you can be as creative as you want to make more SwiftUI builder style API. Here is an example where it shines in creating attributed strings. Created by David Roman
Getting Started with Combine
A very in-depth walkthrough for Combine, made by tundsdev. Learn the practical examples for using Combine in SwiftUI & UIKit, along with many other fundamental concepts like Publisher, Subscription
How to Design a Great App Icon: What You Need to Know
The icon is the most important visual element to your app. Learn how to design perfect app icon with recommended tools, by Michael Flarup. This is not about code, but design is as important too.
‎Timemator: Time Tracking
A very beautiful time tracking app by Gleb Kotov, you might have seen countless number of time tracking apps before, but for Timemator you can’t forget at least from the cool app icon
‎Coffee Cups: Barista Recipes
A perfect app for all coffee lovers by Nick Nikeforou. Getting to know the ingredients for all types of coffee and how to make your own. I also love the overall coffee color theme.
Until next time
Thanks for reading, hope you discover something interesting. May your code continue to compile, and have a great weekend.
Did you enjoy this issue? Yes No
Swift Discovery
Swift Discovery @onmyway133

Swift Discovery curates content related to Swift, SwiftUI, iOS, macOS, with a focus on indie development. Deliver every Friday 🥳

In order to unsubscribe, click here.
If you were forwarded this newsletter and you like it, you can subscribe here.
Created with Revue by Twitter.
Oslo, Norway