Xavierxavier7t.hashnode.net·Apr 18, 2023withAnimation in SwiftUIAnimations are an important part of modern app development. They can make your app more engaging, intuitive, and fun to use. SwiftUI, Apple's new declarative UI framework, provides a range of powerful tools for creating fluid and dynamic animations. ...Discuss·10 likes·38 readsiOS
Xavierxavier7t.hashnode.net·Mar 4, 2023Links in SwiftUIHi all, today I’m going to demonstrate the two ways to add a link in your iOS app in SwiftUI. The first way is a general link, which will take the users to a webpage in Safari (or another browser set as default). The other way is a share link, which ...Discuss·1 likeiOS
Xavierxavier7t.hashnode.net·Feb 18, 2023Localizing Date & Time in SwiftUIToday’s post will share a tip to work with localization. When you localize your app with a Date (in Swift the type Date represents both date and time), you might need to make dates get displayed in different languages. The source code of this post is...Discuss·65 readsiOS
Xavierxavier7t.hashnode.net·Apr 25, 2023Regex in SwiftUIUsing regular expressions (regex) can be a powerful tool in SwiftUI for validating user input and manipulating text. In this blog post, we’ll explore how to use regex in SwiftUI. The code in this post is available here. To use regex in SwiftUI, you f...DiscussiOS
Xavierxavier7t.hashnode.net·Apr 22, 2023onMove in SwiftUI ListSwiftUI provides a simple and elegant way to implement lists with the List view. But sometimes, we need to add some extra functionality to make our lists more interactive. One such functionality is "drag-and-drop" reordering of list items. In this bl...DiscussSwift
Xavierxavier7t.hashnode.net·Apr 20, 2023Integrating UIKit into SwiftUIThere may be times when you need to use some of the traditional UIKit controls in your SwiftUI app. Fortunately, SwiftUI allows you to integrate UIKit components into your app seamlessly. In this blog post, we'll explore how to integrate UIKit into S...DiscussiOS
Xavierxavier7t.hashnode.net·Apr 19, 2023Image Caching in SwiftUICaching images is an important technique for optimizing the performance of your SwiftUI app. When you load an image, it can take time to fetch it from a remote server or read it from disk. By caching the image, you can avoid repeating this time-consu...DiscussiOS
Xavierxavier7t.hashnode.net·Apr 18, 2023withAnimation in SwiftUIAnimations are an important part of modern app development. They can make your app more engaging, intuitive, and fun to use. SwiftUI, Apple's new declarative UI framework, provides a range of powerful tools for creating fluid and dynamic animations. ...Discuss·10 likes·38 readsiOS
Xavierxavier7t.hashnode.net·Apr 15, 2023CryptoKit in SwiftUISecurity is a crucial aspect of mobile app development. In iOS app development, encrypting user passwords is an important step to ensure the protection of user data. In this blog post, we'll show you how to encrypt passwords in SwiftUI. The code in t...DiscussiOS
Xavierxavier7t.hashnode.net·Apr 13, 2023JSON Coding Key in SwiftIn SwiftUI, we often work with data that comes from an external source, such as JSON data from an API or data from a database. When working with this type of data, we may need to convert between the external representation and our internal representa...DiscussiOS
Xavierxavier7t.hashnode.net·Apr 10, 2023Attributed String in SwiftUIIn today’s post, I’d like to share a tip: how to create one Text View with components in different styles. In short, we can use an NSMutableAttributedString as the text value, and prepare the text components with different attributes when the view in...DiscussiOS
Xavierxavier7t.hashnode.net·Apr 9, 2023Async Task with Combine in SwiftUICombine is a powerful framework introduced by Apple that provides a declarative and reactive approach to handling asynchronous events and data streams. In SwiftUI, Combine is used extensively for handling data flow and reactive programming. In this b...DiscussiOS
Xavierxavier7t.hashnode.net·Apr 8, 2023Redaction in SwiftUIOne useful feature of SwiftUI is the ability to redact content, which allows developers to obscure sensitive information in their apps. In this blog post, we’ll explore how to use redaction in SwiftUI. The code of this post is available here. What is...DiscussiOS