→ swift

All posts associated with swift

Status Bar Background Color in SwiftUI

In iOS 15 it looks like the status bar default is now to have a transparent background. If you don't like this here is how you can change it.

swift, swiftui, ios15, statusbar – Jan 25 2022

Multiple Sheets in SwiftUI

Sometimes you will need to show different sheets within one SwiftUI view. This can be difficult to manage, but it can be solved using the latest in SwiftUI.

swift, swiftui, binding – Feb 15 2021

Background Color for SwiftUI

You want the entire background color filled.

swift, swiftui, color – Feb 14 2021

SF Font for CSS

Webkit has updated support for system fonts for CSS.

swift, webkit, apple-system – Feb 14 2021

Enumerating Tuples In SwiftUI

ForEach with an Array of Tuples can cause some unexpected results, if your id that your using is not unique. Here is a story.

swift, swiftui, tuples, list – Feb 13 2021

Enumeration and ForEach

You want the ability to get the index from an array during a ForEach. Here are some things to consider.

swift, swiftui, color – Feb 12 2021

Coding Problem Splitter

Twitter posting that suggested most candidates could not solve this particular problem. This post just walks through the example posting, along with a solution written in Swift.

swift, function, algorithms – Feb 02 2021

Swift Extensions

Swift extensions are a unique feature to the Swift language. I will try to outline all the different ways extensions are used in a project.

swiftui, swift, ios, extensions, color – Jun 26 2020

Datasource and Traitcollection

Example of accessing the traitCollections within the DataSource. This example illustrates how inheritance can be useful in this situation.

datasource, traitcollections, protocol, swift – Aug 30 2019

Preferred status bar style

Need to change the preferredStatusBarStyle for one fo your child view controllers in your app? It might not be obvious on how to do it. This article explores one solution.

swift, xcode, uistatusbarstyle – Oct 28 2018

Loading local JSON file

How to fetch a local JSON file. The articles discusses how you can access the local file system, using Codable and few other methods for prototyping.

swift, xcode, json, decodable – Oct 22 2018


In Swift 4 they added the ability for grouping. This post contains an example of using it on an Array.

swift, xcode, grouping – Oct 20 2018

Parsing XML (Final Solution)

An overview on how to use XMLParser for parsing XML documents. This contains the final solution. Make sure to see the other post for the how-to.

swift, array, xml, xmlparse – Oct 15 2018

Parsing XML

How to use XMLParser for parsing XML documents

swift, array, xml, xmlparser – Oct 15 2018

Get font families

Sometimes a design might require a custom font to be used. This summary outlines the resources and steps required to get your custom fonts setup in your build.

swift, xcode – Oct 08 2018

Enum as asset identifiers

By using extensions on UIImage, you can use an Enum to catalog specific image assets

swift, xcode, enum – Oct 05 2018

Follow on Twitter
Follow on Github