Martin Albrecht·Jun 22, 2025Stop discussing devices; start discussing size classes!With the increasing variety of devices, displays, and sizes within the Apple ecosystem, the distinction between phones, tablets, and…
Martin Albrecht·Nov 11, 2024How to fetch system information with sysctl in Swift on macOSSometimes you need to get deeper information about the system your program is running on (e.g. the number of cores, amount of memory, or…
Martin Albrecht·Feb 25, 2024How to detect “Designed for iPad” Mac apps in your Swift codeWith the introduction of Apple Silicon Macs, a new device destination called Mac (Designed for iPad) became available within XCode. This…
Martin Albrecht·Nov 1, 2023How to export Freeform shapes as an image fileWith iOS 16 Apple also released the app Freeform in which you have an endless whiteboard on which you can easily create all sorts of…
Martin Albrecht·Jul 15, 2023How to: Use raw binary data in your Swift applicationsReading in raw binary data with a simple Swift script on the command line
Martin Albrecht·Feb 5, 2022SwiftUI: An updated approach to limit the amount of characters in a TextField viewSince my last article about how to limit the amount of characters in a SwiftUI TextField, it seems Apple has changed a lot of things with…A response icon2A response icon2
InBetter ProgrammingbyMartin Albrecht·Oct 27, 2021Create Complex Background Blurs in iOS With SwiftUILet’s use the power of generics in SwiftA response icon1A response icon1
InITNEXTbyMartin Albrecht·Oct 5, 2021SwiftUI: Add a nice header skew animation to your viewsDuring some research about typography I discovered an interesting UI effect on one of the sites I visited of which I thought it could…
InITNEXTbyMartin Albrecht·Jun 27, 2021How-to: Create a custom ProgressView with SwiftUIFor creating progress bar views in iOS or MacOS apps you might already be familiar with the ProgressView element from UIKit or SwiftUI and…A response icon1A response icon1
Martin Albrecht·Apr 21, 2021SwiftUI: How to apply custom button stylesTo style a button with some predefined style inside your app you would usually use the buttonStyle method and apply one to it (e.g…