RSSAmplifier

Blog

magnuskahr

My universe on the internet

magnuskahr.dkRSS feed ↗26 posts

Latest posts

SwiftUI Design System Considerations: Semantic Colors

A macro-based way to use semantic colors in SwiftUI that keeps things clean, safe, and easy to use.

Building Flexible, Styled ListItems in SwiftUI

Build flexible, styled, and slot-enabled listitems in SwiftUI with a clean, reusable API.

Announcing FlowNavigation

Flow Navigation is a declarative navigation system for SwiftUI that enables linear, structured, type-safe flows.

Using SwiftUI Property Wrappers Outside of Views

Learn how to leverage SwiftUI property wrappers effectively beyond traditional Views by conforming to DynamicProperty.

Advantages of Using withAnimation

Understanding when to use `withAnimation` in SwiftUI

SwiftUI: Trailing label TextField

Create a SwiftUI trailing label textfield that visually aligns the label with the input value, improving the user experience in forms.

Blendmode trick: SwiftUI reverse mask

Adding reverse masks to a view to cut out those pixels.

Overview: Raw Strings

A reference work of how raw strings work in Swift

Introducing the EnvironmentBacked property wrapper

The EnvironmentBacked property wrapper makes it easier to create flexible views with a great API.

Nested reusability in SwiftUI

An example of how nesting structs in SwiftUI can make powerful and reusable forms.

Better placements of bottom buttons in SwiftUI

Creating a modifier to place buttons at the bottom of the screen with a minimum spacing to the edge.

Blendmode trick: SwiftUI source overlay

Adding overlays to a view that only render above the view's own pixels.

UnwrappingButton: Ensuring data in SwiftUI

Introduction of the UnwrappingButton, and how it can help us to ensure the validity of data in SwiftUI.

Cascading Environment actions in SwiftUI

We build an Observer-pattern-like implementation for SwiftUI with actions passed into the environment.

Passing actions through the Environment in SwiftUI

We dive into the Environment in SwiftUI and see how we can use it to pass down actions, and simplify the use of our views.

SwiftUI: A picker for enums

Enums are a great way to define a finite choise of states. To make this easy, we create an EnumPicker which makes it simple an flexible to pick an enum.

SwiftUI: List row background

The SwiftUI documentation can be complicated, especially whens it lies. Here is the propper way to apply background to a List.

Bitboards in Swift

With bitboards we use a simple integer type to store information on a bit level

Syntactic-sugar: exclude

Lets extend the Swift language to contain an exclude method for functional programming

Decode arrays where items can fail

Learn how decode an array of items, even if some of the items misses some values

Creating a custom input in swift

Every UIView can spawn an inputView like a keyboard, let us see how to do this

Replicating keys from UIKit

Making our apps look like the system, can make them feel at home in the system. Lets see how we can emulate the keys of the UIKeyboard

The Ultimate Playground - Coderunner 3

A short review of Coderunner 3

Creating custom views the Swift way

Learn how to create custom UIViews in code

Iterating over two sequences in Swift

Learn the power of using zip() in Swift

One UITableView, multiple DataSources

Often we have a tight coupling between our tableviews and datasources, lets see have one tableview can have multiple datasources