RSSAmplifier

Blog

FIVE STARS

Exploring iOS, SwiftUI & much more.

fivestars.blogRSS feed ↗100 posts

Latest posts

SwiftUI Lessons

I recently had the opportunity to give a talk at iOS Conf SG 2022 : in this talk, called SwiftUI Lessons, I don't share the usual content you can find on this website. Instead, I talk about my experience in transitioning to SwiftUI, coming from a UIKit developer's perspective. The talk is addressed to both new and seasoned Apple platforms developers: video slides ( pdf ) slides source If you know…

New SwiftUI documentation in Xcode 13.3 beta 1

Everything new in SwiftUI in Xcode 13.3b1

What's new in Xcode 13.2 beta 2

View.onSubmit(of:_:) and focus API back-port might be coming next?

Custom SwiftUI Environment Values Cheatsheet

A collection of the most common custom types we might define into the environment.

What's new in Xcode 13.2 beta 1

Large Content Viewer and a lot of documentation updates.

How to define custom SwiftUI environment values

How we can extend EnvironmentValues with our custom values

EnvironmentValues

A dive into SwiftUI's EnvironmentValues, one key part of SwiftUI's environment propagation.

UIKit/AppKit and SwiftUI's Environment propagation

We continue our SwiftUI's environment exploration with advanced use cases and how it interacts with UIKit.

Advanced Environment propagation

We continue our SwiftUI's environment exploration with more advanced scenarios.

The SwiftUI Environment

What it is, how it's propagated through the view hierarchy, how to read and write values, and much more!

SwiftUI blend modes

An exploration of all 21 SwiftUI blend modes, what they are, what they do, and more. With examples.

How to apply a reverse mask in SwiftUI

An exploration on how we can achieve masking effects beyond what SwiftUI offers.

What's new in Xcode 13 Release Candidate

A quick look at the only SwiftUI change and a look back at all previous betas

View masking in SwiftUI

What SwiftUI offers beyond clip masks.

View clipping in SwiftUI

A quick tour on all the possible ways we can clip views in SwiftUI!

Every SwiftUI Environment Value explained

A tour on the 50+ public environment values.

Handling links with SwiftUI's openURL

A deep dive into the latest environment value!

What's new in Xcode 13 beta 5

Links handling, ContentShapeKinds, and more!

How to layer multiple windows in SwiftUI

A complete guide on managing multiple windows in SwiftUI

SwiftUI's new onSubmit modifier

A dive into the new search and textfield submission pattern

What's new in Xcode 13 beta 4

Button and AttributeString style updates, & more!

Backporting new features with @_alwaysEmitIntoClient

An exploration of the private @_alwaysEmitIntoClient attribute

Environment Objects and SwiftUI Styles

Some important heads up on this powerful combo.

What's new in Xcode 13 beta 3

A.k.a. the "SwiftUI style" release, let's have a look at what's new!

How to add an AppDelegate and a SceneDelegate to a SwiftUI app

An exploration on how to reach for and use app and scene delegates within a SwiftUI App lifecycle

Meet the new Button styling

Buttons have gained a few new tricks this year, let's see how we can take advantage of them!

SwiftUI patterns evolution: view builders

We're now at the third big SwiftUI iteration, let's see a new trend with view builders

What's new in Xcode 13 beta 2

A quick look at all the new SwiftUI goodies!

Backport SwiftUI safe area insets to iOS 13 and 14

safeAreaInset() is awesome, can we use it in previous iOS versions?

How to control safe area insets in SwiftUI

Fresh out of WWDC21, let's dig into the brand new safeAreaInset view modifier!

What's new in SwiftUI

WWDC21 is here! Let's take a look at some of the new SwiftUI additions!

WWDC NOTES 2.0!

Just in time for WWDC21, WWDC NOTES 2 is live! Here's what's new!

SwiftUI patterns: view closures

A tour into how SwiftUI has replaced UIKit's Target-Action design pattern

SwiftUI Introspect

A deep dive into one of the must-have libraries for any SwiftUI app!

My WWDC21 Wishlist

My hopes for WWDC21!

A TextFieldStyle API preview!

TextFieldStyle is not officially available yet, can we have a sneak peek at how it might look like?

What's new in Swift Package Manager in Swift 5.4

A look into all main SPM changes for Xcode 12.5

Four ways to customize TextFields

SwiftUI is a dream for prototyping and building views: in this article, let’s see how we can customize a TextField.

Every SwiftUI protocol explained

How many protocols does SwiftUI define? How many do we know about and actually use? Let's answer these questions, and more!

Welcome to FIVE STARS 2.0!

Come and discover everything that's new in this first FIVE STARS overhaul, there's also an announcement for people that would like to support the website, and more!

A sneak peek into SwiftUI's graph

Let's explore how SwiftUI knows what and when to observe view-specific publishers at any given time!

Inspecting SwiftUI views

SwiftUI composition on steroids: let's see how we can inspect and change any given view.

Encoding and decoding Swift dictionaries with custom key types

Sometimes even very well known APIs can still surprise us.

App-wide state in SwiftUI

An introduction to a common app architecture used in SwiftUI, and how to avoid one of its most common pitfalls.

Quick tips on embracing @ViewBuilder

With Swift 5.3, @ViewBuilder is now more powerful than ever! Let's see how we can take advantage of the latest new features.

Function builder attribute 'ViewBuilder' can only be applied to a property if it defines a getter

A quick follow-up and a sneak peek of a new Swift 5.4/Xcode 12.5 @resultBuilder feature.

Custom HUDs in SwiftUI

Let's see how we can create our own app-wide HUDs in SwiftUI!

SwiftUI patterns: passing & accepting views

Let's see how SwiftUI itself uses composition in its own APIs.

SwiftUI keyboard avoidance

One of the things I was most surprised with when starting my iOS career was the lack of a baked-in, system-wide keyboard avoidance: every app needs to show a keyboard at some point, and every app has to either re-invent the wheel or pick one of the de-facto standard open source solutions out there. Fortunately, in iOS 14, SwiftUI ends it all by gaining automatic keyboard avoidance. In this…

How to create custom SwiftUI view styles

When building new SwiftUI components, it's common to offer variants for different purposes/screens. One way to manage such variants is via styles, for example by using instances conforming to LabelStyle or ButtonStyle : HStack { Label ( "The title will be hidden" , systemImage: "moon.circle.fill" ) . labelStyle ( IconOnlyLabelStyle ()) Button ( "Tap me" ) { // handle button tap } . buttonStyle (…