Swift
92.7K views | +0 today

Why Conditional View Modifiers are a Bad Idea · objc.io

From www.objc.io

objc.io publishes books, videos, and articles on advanced techniques for iOS and macOS development.
No comment yet.

Creating Slick Color Palette APIs

From www.fabisevi.ch

The work of writing maintainable code is an ongoing endeavor and some of my favorite problems to solve are ones that build maintainable systems. Maintainable systems are ones you can learn once, easily manipulate, and ideally take from project to project. My favorite part of building maintainable systems is that it minimizes the amount of work I need to do when starting a new project, and like it is for many programmers hitting ⌘ + ⇪ + N to start a new project is one of the most satisfying feelings in the world for me.
No comment yet.

How to use throwing properties to catch failures in Swift

From www.avanderlee.com

Throwing properties and custom subscripts that throw allows us to catch failures from read-only accessors and handle unhappy paths.
No comment yet.

Dependency injection and Generics to create a modular app in Swift

From benoitpasquier.com

When we talk about modular app, we rarely mention how complex it can be over time and get out of hand. In most cases, importing frameworks into one another is a reasonable solution but we can do more. Let’s explore how with dependency inversion in Swift and how to create order into our components.
No comment yet.

AsyncSequence Combine - equivalence (Part 2a)

From blog.human-friendly.com

Article mostly for historical record. Will try to publish an update without the inner actor stuff (no longer needed in Xcode 13 beta 5). Having written it though it seems a shame to jus
No comment yet.

Using ‘@unknown default’ within switch statements

From www.swiftbysundell.com

What Swift’s @unknown attribute does, and why the compiler tells us to use it when switching on certain enums.
No comment yet.

Snapshot Testing Tutorial for SwiftUI: Getting Started

From www.raywenderlich.com

Learn how to test your SwiftUI iOS views in a simple and fast way using snapshot testing.
No comment yet.

Adding Intelligent Code Generation to Swift Projects with SourceKit

From swiftrocks.com

I've been playing with intelligent code generation for a couple of years now, and I'd like to show you how to achieve this with SourceKit.
No comment yet.

SwiftUI's new onSubmit modifier

From www.fivestars.blog

A dive into the new search and textfield submission pattern
No comment yet.

Environment Objects and SwiftUI Styles

From www.fivestars.blog

Some important heads up on this powerful combo.
No comment yet.

Copy-On-Assignment vs. Copy-On-Write in Swift | by Ayman Fayez | Jul, 2021

From aymanmoo.medium.com

Understanding memory management has always been an important topic to avoid memory performance issues and crashes. A good way to understand something is to ask questions about how it works. This…
No comment yet.

Persisting Sensitive Data Using Keychain in Swift

From swiftsenpai.com

This article teaches you how to saves, updates, reads, and deletes data in both iOS and macOS using Keychain Services in Swift.
No comment yet.

Throwing and asynchronous Swift properties

From www.swiftbysundell.com

How Swift 5.5 enables computed properties to become either throwing or asynchronous, and what sort of situations that these new capabilities could become useful in.
No comment yet.

Implementing Feature Flagging in iOS

From digitalbunker.dev

We'll cover what they are, how to create them, how to fetch feature flags from an API and all of the other benefits they enable.
No comment yet.

Backporting new features with @_alwaysEmitIntoClient

From www.fivestars.blog

An exploration of the private @_alwaysEmitIntoClient attribute
No comment yet.

Confirmation dialogs in SwiftUI

From swiftwithmajid.com

SwiftUI Release 3 brings a few generic view modifiers that allow us to handle semantically similar operations for different views in the very same way. One of these view modifiers is onSubmit, which we can use to manage both forms and search fields. This week we will talk about another view modifier that SwiftUI provides us to display confirmation dialogs.
No comment yet.

Async let explained: call async functions in parallel

From www.avanderlee.com

Async let allows executing multiple async methods in parallel and awaiting all results together for better performance in your apps.
No comment yet.

StaticString, and how it works internally in Swift

From swiftrocks.com

StaticString is an interesting type in Swift. Let's see how it works!
No comment yet.

How to check if Mobile Data is enabled for your app | Filip Němeček

From nemecek.be

Personal site of Filip Němeček with blog, selected projects, apps and more
No comment yet.

102: “WWDC21, two months later”, with special guest Jordan Morgan

From www.swiftbysundell.com

Jordan Morgan returns to the show to discuss some of the key new APIs and frameworks that were announced at WWDC21, and how they can be integrated into the apps that we build, now that about two months have passed since the conference took place.
No comment yet.

Submitting values to SwiftUI view

From swiftwithmajid.com

SwiftUI Release 3 brought us a new declarative approach for handling submitted values. Text fields, forms, search bars allow users to submit values that we can take and react to them using the new onSubmit view modifier. This week we will learn how to use the onSubmit view modifier and what benefits it provides us.
No comment yet.