The problem begins when I was searching for a native iOS API to create a blurred background view while presenting a modal ViewController as shown in the image above.
I found that iOS has provided
UIBlurEffect with three different styles, including
.extraLight. However, I could not set the intensity level and the default blurred level is quite high.
Another article takes a similar approach. It takes a background screenshot and applies a Gaussian Blur in…
SwiftUI was first introduced at WWDC 2019, and the API has rapidly improved over the last two years. Apple has really made significant improvements to SwiftUI, including UI components, layouts, and animation.
Until WWDC21, SwiftUI had not yet included a dedicated
CollectionView or Compositional Layouts to replace the
UICollectionView in UIKit. As a result, the current workaround solution that can be implemented by developers is using
In this article, we will discuss the available solutions to imitate
CollectionView in SwiftUI without using
There are several approaches that we can implement in our project using purely SwiftUI…
SwiftUI has become more famous since its introduction at WWDC2019. Over the past two years, Apple has added lots of improvements to this UI framework. Today, developers have started adopting it and slowly migrating their projects from UIKit.
In this tutorial, we will make a simple list with endless scrolling and pagination (as shown in the header image). We will use GitHub API to get a list of users. It contains all the GitHub users since it was founded. In our final product, we will be able to create an app with the following features:
The rise of social media platforms such as Facebook and Twitter have had a significant impact on the world today. People appear to have a habit of scrolling through their feeds all day, looking at various information and stories.
A feed page is a common feature in every social app that allows users to scroll indefinitely. In this article, we will learn how to fetch large amounts of data with pagination. We will be using GitHub API to simulate the endless data request.
GitHub provides an API in which some of the endpoints are public and the data can be…
This is a quick tutorial on how we can implement the AutoFill feature in our iOS apps to improve the user experience when dealing with multiple input fields. There will be a suggestion on each input field while they are typing depends on the specified input type.
AutoFill was explained in detail in WWDC20 which supports many types of input, including name, address, location, email, username, password, strong-generated password, and security code. Nothing is fancy and complicated. All we need is to use the UITextContentType API to specify the content type of each of our TextFields.
Great. Let’s take a…
As product owners or developers, we want to create great apps that are well-designed and fully functional. However, complex apps with advanced UI design and flow can sometimes result in disastrous code being written that is very difficult to maintain.
Spaghetti code is a well-known term among developers. It refers to a project that is unstructured and difficult to understand and maintain. Most haywire-code projects are caused by poor software development practises, such as function redundancy and inconsistent naming.
Some developers may argue that this is inevitable due to the short timeline, numerous feature requests, and developer backgrounds. …
Result Type was introduced as an improvement for error handling in Swift 5. It has been widely implemented by iOS developers. Since it was released, all third-party libraries also started to adopt it. But I notice that some developers are still using the old implementation probably because they already get used to it for a long time.
In this article, we are going to discuss and revise the basic usage of Result Type in the basic function and completion method. Let’s see the implementation without and with Result Type.
First, we will take an example of a simple method to…
A bottom sheet modal view controller is a feature that has a great UI/UX design. It is very useful when we want to present a quick preview with minimal content. In fact, in most iOS implementations, it has a pan gesture feature (draggable) to simply dismiss the controller or expand the content by dragging the view to the top or bottom. The modal view controller can also be quickly dismissed by tapping the dimmed background.
This feature is currently implemented in many well-known apps such as Facebook, Slack, and Instagram.
Cloud Functions is a powerful feature provided by Firebase that is capable of managing intensive backend processes and handling event responses. It is very useful to reduce important logic performed in frontend apps.
In some scenarios, when a user logs into an app, we might need to send a welcome email or authentication code. In another example, when a user uploads photos from an app, we sometimes want to capture and modify it before it is stored. These logics need to be handled by the backend through the cloud function. …
Everyone should be familiar with Swift Collection including Array, Set and Dictionary. These three types are very useful in iOS Development to store data in collection form.
In this article, we are going to discuss the useful methods that can be used for Array. Array stores data with the same type in the ordered list and its elements are accessible by an index starting from zero. It can be stored with various data types (Int, String, Double, Any, Optional, etc) and also any type of user-defined Class or Struct.
Before we go through each method, let’s revise a bit the…
iOS Developer focusing on Swift — “Learn, that’s how we grow our skill”.