I am an Apple fanboy and I admit that. But one of the most frustrating things in being an app developer is dealing with the App Store review and compliance teams. This time I would like to share my experience with these problems.
Even Apple’s former app approval chief has said that he is ‘really worried’ about the company’s anticompetitive behavior.
Showing and hiding some parts of information is a vital feature in mobile apps, especially considering that phone screens are much smaller than those on laptops or desktop computers.
Now with the new SwiftUI capabilities, we can collapse content with
DisclosureGroup. Let's see how we could use it in various ways.
Let’s start with the most straightforward way to set up a collapsable view that we could show or hide. It comes with a disclosure arrow indicator and nice animation.
In this blog post, let’s use an example showing weather conditions that would be a SwiftUI view
WeatherDetailsView and show…
Alerts are one of the most crucial building blocks of iOS applications. We can use them to inform users about an error if something requires more time, like downloading a file or ensuring that everything is OK. Another use case with alerts is asking for confirmation when our app users want to delete something or make a wire transfer.
SwiftUI has the
Alert component for this, and there are a few ways to use it. Let's check them out.
One of the easiest ways to show an alert with SwiftUI is to have a local state variable to indicate if…
This time, we will look at a couple of ways to show a text label inside a circle using SwiftUI. We will dig deeper into three different ways using the
.overlay modifiers. In the end, as a small bonus, we will check out how to present a text label over a circle using the
Our end goal is something like this:
Selecting images from our iPhone library is needed when changing a profile picture, posting an update, or sharing the photo of your pet. In this post, we are going to look into how to use
PHPickerViewController with SwiftUI. Apple announced this view controller at WWDC2020.
PHPickerViewController is a view controller that gives way for our app users to pick assets from their photo library. It provides a well-known user interface, and we don’t need to bother about building that.
Once you create a SwiftUI view, it has the default background color, white for light mode and black for dark mode respectively. How can you change it to something different? Let’s look into that today.
In this article, we will talk about different techniques that we can use to change the default background for our SwiftUI views.
The first approach that comes to mind is using
.background() modifier. Sadly Apple hasn't provided documentation for this. It takes in a view that is set as a background for the view we are adding this modifier to.
In this case, we want…
When presenting a small piece of extra information on the screen, showing a modal view is essential. With UIKit, we could do this with
However, when using SwiftUI, we need to shift our thinking towards using view or environment state, as the modal view is now called a sheet.
Let’s check this out in detail.
SwiftUI sheets help us show a modal view to users.
sheet is an instance method to the View Presentation. It describes how we can show our SwiftUI views, covering specific user journey scenarios.
Let’s say we want to display information about our app…
The launch screen is the first interaction that users see when using our apps. That’s why investing time in making our app launch screens feel responsive and visually appealing is important. We are playing with the “perceived time,” and it can make a great first impression.
At WWDC 2020, Apple introduced a new way to implement a launch screen for SwiftUI apps in iOS 14 using Xcode 12. When we create a new SwiftUI app, this is the new way to make launch screens. We can still use the old way with the Storyboard launch screen in our existing apps.
A while back, we looked into Dynamic Type with the system font. This time, we are going to check out how to use Dynamic Type with a custom font in our iOS apps. Apple provides great APIs to make our apps accessible — even if we’re using custom font styles.
First, we need to add our custom font to the project. There are several steps involved, so let’s go over them.
We need to add a font file to the Xcode app project. Currently, True Type Font (.ttf) and Open Type Font (.otf) files are being supported. Just drag and…
Finding places, navigating our way, or simply checking what’s around — these are essential things that smartphones can help with. This year Apple added maps functionality to the SwiftUI framework. Let’s check out how we can use it and what are the current problems.
Experienced Apple tech software engineer. Co-founded Qminder . Co-curator at swiftlybrief Love cycling and cats. Inclusivity. Vegan lifestyle. Animal freed