How to Create Perspective Text Using SwiftUI
If you’ve worked with UIKit before, the Text control in SwiftUI is very similar to UILabel in UIKit. It’s a view for you to display one or multiple lines of text. This Text control is...
Announcing Mastering SwiftUI
We have just launched our new book – Mastering SwiftUI. As introduced to you earlier, this book teaches you how to build UIs and iOS apps with Apple’s brand new UI framework. It is written for both beginners and...
SwiftUI Tip: How to Create a Card View with Stacks
In this tutorial of our SwiftUI Tip series, we are going to implement a common mobile UI design usually known as Card UI. The SwiftUI framework has made building app UI a breeze. Later, you will see that by using stacks, image,...
SwiftUI Tip: ButtonStyle and Animated Buttons
Earlier, I gave you an introduction on SwiftUI button, let’s dive a little bit deeper and see how to create a custom button style and animate a button. This is a follow-up tutorial on the beginner’s guide to SwiftUI...
SwiftUI Tip: How to Create a Context Menu in iOS 13
Earlier, Apple officially released iOS 13 to the public. Apart from dark mode and other new features, the latest version of iOS also introduces us a new way known as Context Menu to interact with the device. A context menu is...
SwiftUI Tip: Drawing a Border with Rounded Corners for Buttons and Text
With SwiftUI, you can easily draw a border around a button or text (and it actually works for all views) using the border modifier. Say, for example, you want to create a button like this: We can apply the border modifier on a...
A Beginner’s Guide to SwiftUI Buttons
I don’t think I need to explain what a button is. It’s a very basic UI control that you can find in all apps and has the ability to handle users’ touch, and trigger a certain action. If you have learned iOS...
How to Preview Your iOS Apps in Dark Mode Using Xcode 11
Earlier, Apple dropped the first beta of iOS 13 to the public. For a general user, dark mode is definitely the biggest visual change in this release. By flipping an option in Settings, iOS makes everything dark! In dark mode, the...
How to Build a Form UI with SwiftUI
In the introductory tutorial, we gave you an overview of SwiftUI and walked you through how to build a simple user interface. After exploring the framework for around a week, I really enjoy developing user interface with SwiftUI,...
SwiftUI First Look: Building a Simple Table View App
WWDC 2019 was one of the more exciting keynotes in terms of advancements in developer tools. One of the biggest and the best announcements was the release of SwiftUI. SwiftUI is a brand new framework that allows you to design and...