Category: Programming
CoreData tutorial in Swift 5 using NSFetchedResultsController
Let us see an example TaskManager app using CoreData written in Swift Programming language. This app provides the following functionality Allow users to enter new task Update existing task delete task You can download source code for this project from Github. If you are familiar with user interface then move on to the Core Data…
Get your current address in Swift (Swift 5)
In this Swift tutorial, we will see the steps required for using CoreLocation framework and retrieve the latitude and longitude of the location. Then use the CLGeocoder to reverse geocode the latitude and longitude details. This is a very basic tutorial that retrieves the location details on tap of a button and displays the information…
Swift – WebView demo
Updated for Swift 5In this short tutorial, we will see an example in Swift programming language using UIWebView. The WebView will load a webpage and provide option to refresh, stop, go back and go forward. This tutorial should give a brief overview on how to declare IBAction, IBOutlets and use Objective-C classes (NSURL and NSURLRequest)…
Access Control in Swift
Swift like other programming languages provides option to restrict access to classes, functions, variables, structs, enums etc applying the required Access Control. These restrictions are based on each module, as per Apple documentation a module is defined as A module is a single unit of code distribution—a framework or application that is built and shipped as a…
Add annotations and Polyline to MapView in Swift
In this article, we will see the instructions for adding annotation to MapView, Draw Polylines and Zoom to a region in Swift. Let us see this by adding stations to a Map for Chennai subrban trains and connect these stations using Map Overlay. Project Setup Create a new project by selecting Single View Application…
DatePicker Demo in Swift
In this short tutorial, we are going to see the steps required use DatePicker in a iOS / Swift project. This demo is done by adding the DatePicker controls to Interface Builder and not programmatically. Date Picker Mode Date Picker control allow developers to specify the mode such as Date, Time, Date and Time and…
Swift Fundamentals: Tuples, Enums, and Protocols
Swift has evolved significantly since its introduction, offering powerful features that enable developers to write more expressive and safer code. In this guide, we’ll explore three fundamental concepts in Swift: tuples, enumerations (enums), and protocols. We’ll cover their usage, best practices, and how they’ve evolved in modern Swift. Tuples Tuples in Swift allow you to…
Retrieve list of Twitter followers using Swift
This article provides details about the the steps required to retrieve the followers in from your twitter account. You will learn the following by going through this article Use oAuth to retrieve bearer token. Retrieve twitter followers using API call. Last 20 followers name and profile image will be displayed in a tableview. Download the…