Translating Swift Enum Type into Elixir
We explore how to adapt Swift's indirect enum feature, specifically a Result enum, into Elixir's functional paradigm. Perfect for developers looking to expand their understanding of both Swift and Elixir.
We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
We explore how to adapt Swift's indirect enum feature, specifically a Result enum, into Elixir's functional paradigm. Perfect for developers looking to expand their understanding of both Swift and Elixir.
Learn how to safely ignore the result of a function or method in Swift using the @discardableResult attribute.
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.
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.
You want the entire background color filled.
Webkit has updated support for system fonts for CSS.
ForEach with an Array of Tuples can cause some unexpected results, if your id that your using is not unique. Here is a story.
You want the ability to get the index from an array during a ForEach. Here are some things to consider.
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 extensions are a unique feature to the Swift language. I will try to outline all the different ways extensions are used in a project.
Example of accessing the traitCollections within the DataSource. This example illustrates how inheritance can be useful in this situation.
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.
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.
In Swift 4 they added the ability for grouping. This post contains an example of using it on an Array.
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.
How to use XMLParser for parsing XML documents
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.
By using extensions on UIImage, you can use an Enum to catalog specific image assets