Author: Sergey Kargopolov

I’m a software developer with a passion for teaching. I’ve written lots of articles for AppsDeveloperBlog.com and made plenty of video tutorials on my YouTube channel(https://youtube.com/@SergeyKargopolov). If you want to dive deeper, I’ve also got some courses on Udemy(https://www.udemy.com/user/sergeykargopolov/) you might like.

When I’m not coding, I love to travel. I also share my travel adventures over at TravelLocalCanada.com. Hope to see you around on one of these platforms!

Web: www.appsdeveloperblog.com

WKWebView is a powerful class in the WebKit framework that allows you to embed web content in your iOS app. It’s essentially a mini-browser that provides a rich, interactive web experience within your application. Unlike UIWebView, which was deprecated and removed from iOS 12 onwards, WKWebView is more efficient, has better performance, and offers advanced features like…

Read More Create WKWebView Programmatically and Load Webpage URL

In this tutorial, you will learn how to determine a user’s current location in Swift using CLLocationManager and CLLocationManagerDelegate. CLLocationManager is the class that you use to start and stop the delivery of location-related events to your app. You can use it to track the user’s current location, report heading changes, monitor regions of interest, and range nearby…

Read More Determine User’s Current Location in Swift

In this tutorial, you will learn how to create UIImageView programmatically and how to load an image from a remote URL.  I’ll show you how to create a UIImageView and UIImage programmatically, and teach you how to fetch and display an image from a URL. Step 1: Creating UIImageView Programmatically First,  let’s create a UIImageView programmatically. UIImageView is a…

Read More UIImageView and UIImage. Load Image From Remote URL.

UIStepper is a control in iOS that is used to increment or decrement a numeric value. In this tutorial, you will learn how to create a UIStepper programmatically, add it as a subview, position it in the center of the UIView, make the UIStepper value continuously increment when a user taps and holds the button,…

Read More Create UIStepper Programmatically in Swift

In this tutorial, you will learn how to make UIImage circular programmatically in Swift. Making a UIImage circular programmatically in Swift involves several steps. Step 1: Create a UIImageView with Your Image First, you need to create a UIImageView instance within your UIViewController. Then set the image you want to display  UIImageView by initializing it with a…

Read More Make UIImage Circular Programmatically

In this tutorial, you will learn how to create UISegmentedControl programmatically in Swift. A UISegmentedControl is a horizontal control that consists of multiple segments, each segment functioning as a discrete button. You can use UISegmentedControl to create custom user interface elements for your app, such as a switch or a filter. Creating a UISegmentedControl programmatically…

Read More Create UISegmentedControl in Swift Programmatically

In this tutorial, you will learn how to create and customize UISlider programmatically in Swift. Creating and customizing a UISlider programmatically in Swift involves several steps. Here’s how you can do it: Step 1: Create UISlider Programmatically First, you need to create a UISlider programmatically. You can do this by creating a new instance of the…

Read More Create UISlider Programmatically in Swift

In this tutorial, you will learn how to create and customize UISwitch programmatically in Swift. Creating and customizing a UISwitch programmatically in Swift involves several steps. Here’s how you can do it: Step 1: Create a basic UISwitch First, import the UIKit framework and create a new class that inherits from UIViewController. Inside the viewDidLoad() method, instantiate a new UISwitch object.…

Read More Create UISwitch in Swift Programmatically

In this tutorial, you will learn how to create a UITextView programmatically, position it at the center of the view, change its background color, and dismiss the keyboard when the user taps away. You will also create a UITapGestureRecognizer, add it to the main view, and add the UITextView as a subview. Finally, you will create…

Read More Dismiss UITextView Keyboard When User Taps Away

In this tutorial, you will learn how to create and customize UITextView programmatically in Swift. Creating and customizing a UITextView programmatically in Swift involves several steps. Here’s how you can do it: Step 1: Create UITextView Programmatically To create UITextView programmatically, you will need to first create an instance of UITextView. This can be done…

Read More Create and Customize UITextView Programmatically in Swift

Creating a UITextView programmatically in Swift involves several steps. This tutorial will guide you through creating a UITextView, positioning it at a specific location within a view, centering it, changing its text color, and altering its background color. Step 1: Create UITextView Programmatically To create UITextView programmatically, you first need to create an instance of…

Read More Create UITextView Programmatically in Swift

In this tutorial, you will learn how to check if a UITextField contains a value in Swift. I will cover the following topics: Understanding the isEmpty property. Using the isEmpty property to check if a UITextField is empty. Handling the case when the UITextField is empty. If you are new to UITextField, check out this tutorial: Create…

Read More Check If UITextField Contains Value