→ swift
All posts associated with swift
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 SwiftUISometimes 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 SwiftUIYou want the entire background color filled.
swift, swiftui, color – Feb 14 2021
SF Font for CSSWebkit has updated support for system fonts for CSS.
swift, webkit, apple-system – Feb 14 2021
Enumerating Tuples In SwiftUIForEach 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 ForEachYou 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 SplitterTwitter 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 ExtensionsSwift 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 TraitcollectionExample 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 styleNeed 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 fileHow 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
GroupingIn 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 XMLHow to use XMLParser for parsing XML documents
swift, array, xml, xmlparser – Oct 15 2018
Get font familiesSometimes 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.
Enum as asset identifiersBy using extensions on UIImage, you can use an Enum to catalog specific image assets