LostMoa - Codable Conformance for Swift Enums with Multiple Associated Values of Different Types
Make complex Swift Enums Encodable and Decodable for saving data to disk or interacting with Web APIs.
Make complex Swift Enums Encodable and Decodable for saving data to disk or interacting with Web APIs.
Capture lists have been available in Swift since its debut at WWDC 2014. They play a crucial role in ensuring your asynchronous code does not leak memory or cause exceptions at runtime. In order to use capture lists correctly, you’ll need a good grasp of related topics including value vs. reference types, strong reference cycles, and escaping vs. nonescaping closures. In this article, I’ll cover these supporting topics first, and then explain why, when, and how to use capture lists effectively.
The Combine framework provides a declarative Swift API for processing values over time. It is another excellent framework that released side-by-side with SwiftUI. I already covered it multiple times on my blog, but today I want to talk about one of the key aspects of data processing. Today we will learn how to handle errors during data processing using the Combine framework.
I’ve been using FLEX for years and I just realised the little I’ve done to promote this great tool among the iOS community. So here is my attempt a
URLs are used a lot when buildings apps in Swift. You need to get the query items, file extension, or the filename. All scenarios are handled in-depth!
When someone returns to your app, they should be able to pick up right where they left off. Learn how to make that experience as smooth as possible by implementing state restoration.
Lately, I’ve been researching more about effective Combine techniques. Today, I start in on utilizing Futures.
This week we will talk about another core process in SwiftUI. We will learn the procedure of laying out views. We will understand how SwiftUI calculates positions and sizes of our views and how we can change that process using layout priorities.
Learn how shared logic can be added to tens of thousands of methods.
A simple guide on how to install and start using Lottie animation in your iOS app. Also, learn how you can easily customise the animation behaviour.
How do you build your layout? Are you using auto layout? Frame calculations? Interface builder? I think we’ve all try different approaches and they all come with tradeoffs. It’s even harder when working within a group of people because sometimes the choice has been made out of common beliefs that be
There are a lot of hacky ways to modify or remove a back button title. This tip will show you how to do it properly.
Learn how you can use the incredibly powerful image manipulation frameworks on iOS to use image depth maps with only a few lines of code.
Unlike UIKit, SwiftUI doesn't come with a built-in control for search bar. In this tutorial, let's try to build a SwiftUI version of search bar.
Add keyboard shortcuts to a SwiftUI iOS/iPadOS app to improve user experience when using your app with an attached hardware keyboard.
How to pass data between SwiftUI views? When to use SwiftUI binding, Environment and PreferenceKey explained with Swift code examples? These are the questions to answer in this article.
Binding is one of the several property wrappers that SwiftUI presents us to control data flow in the app. Binding provides us a reference like access to a value type. This week we will understand how and when to use binding. We will learn how to avoid common mistakes while using binding in SwiftUI.
Introduce you to one of an essential part of iOS theming. What is tintColor and its benefit.
Jony Ive didn't take all the fun out of buttons with iOS 7; you can have stylish buttons, the power is still there, but you have to be willing to make the effort.
� Configure constraints for each device in Interface Builder with IBLayoutConstraint. - MaksimKurpa/IBLayoutConstraint
For an iOS project that I am currently working on, I am implementing Dark Mode. The codebase is approaching 7 years old, it is mostly Swift with some legacy Objective-C, and it currently supports iOS 11 and above. Asid