Simplifying Codable Implementation in Swift Using Property WrappersDealing with diverse encoding and decoding requirements for specific fields in a Swift struct can often lead to cumbersome and error-prone…Jan 1Jan 1
Using if/else Statements as Expressions in Swift 5.9Swift 5.9, introduced with Xcode 15, brings a powerful feature that allows developers to use if/else statements as expressions. This…Dec 29, 2024Dec 29, 2024
Customize the style of links embedded in TextSince iOS 15 and macOS 12 we can embed links inside Text views in SwiftUI using Markdown or AttributedString.Dec 24, 2024Dec 24, 2024
Setting Custom Actions for Links in SwiftUI Text ViewsStarting with iOS 15 and macOS 12, SwiftUI Text views offer the ability to include interactive links created with Markdown or…Dec 19, 2024Dec 19, 2024
Enabling Text Selection for Non-Editable Text in SwiftUIText selection is a crucial feature in user interfaces, allowing users to interact with and manipulate text content. In SwiftUI, you can…Dec 14, 2024Dec 14, 2024
Nil Coalescing for Optionals in Debug PrintsIn Swift, working with Optionals is a common practice, and debugging your code often involves printing the values of these Optionals. To…Dec 9, 2024Dec 9, 2024
State Restoration for DisclosureGroup Expansion in SwiftUI List RowsState restoration is crucial for providing a seamless user experience when working with complex SwiftUI interfaces. While it’s…Dec 9, 2024Dec 9, 2024
Re-indenting Code in XcodeMaintaining consistent code formatting is essential for readability and maintainability in any software development project. Xcode, the…Dec 4, 2024Dec 4, 2024
Markdown in SwiftUI Text ViewsStarting with iOS 15 and macOS 12, SwiftUI Text views have built-in support for parsing Markdown when created with a `LocalizedStringKey`…Nov 29, 2024Nov 29, 2024
Resizing SF Symbols in SwiftUISF Symbols have become an essential part of iOS and macOS app design, providing a consistent set of scalable icons. In SwiftUI, you can…Nov 24, 2024Nov 24, 2024