SwiftUI Class Struct Networking XCode NSCache Enum Optionals Property Observers Closures Guard Reviews StoreKit App Store Algorithms Testing Operators Protocol Extensions Weak Unowned SwiftData WWDC23 GCD API Admob SwiftLint Lottie Foreach Objective-C UIKit NavigationSplitView

All Articles


Integrating SwiftUI with UIKit Using UIHostingController

With the introduction of SwiftUI, Apple has provided developers with a modern way to build user interfaces across all Apple platforms.

2024-07-09 . 3 min read     UIHostingController

Read More »

Deep Dive into Autorelease Pools in Swift

In the realm of software development, memory management plays a crucial role in ensuring the efficient allocation and deallocation of memory resources.

2024-01-28 . 4 min read     Swift Autorelease

Read More »

Swift enum equatable: with or without associated values

Swift enums provide a powerful way to model a set of related values. Enums can be equipped with associated values, allowing them to represent a variety of data structures.

2024-01-24 . 3 min read     Swift Enums

Read More »

How to create Date Picker in SwiftUI

Use a DatePicker when creating a view that enables users to choose both a calendar date and, if needed, a specific time.In SwiftUI, you can use the DatePicker view to create a date picker.

2024-01-16 . 2 min read     SwiftUI DatePicker

Read More »

Getting started with Swiftlint to enforce Swift style

SwiftLint is a tool that ensures Swift code adheres to defined style guidelines. It automates code review by identifying and suggesting improvements for style violations.

2023-12-29 . 4 min read     Swift SwiftLint

Read More »

How to use Lottie animation in SwiftUI

Lottie is a fantastic tool for incorporating high-quality animations into your SwiftUI projects. There are several ways to add Lottie to project.

2023-12-13 . 2 min read     SwiftUI Lottie

Read More »

How to get index in Foreach in SwiftUI

In SwiftUI, the ForEach is used to iterate over a collection of data and create views dynamically based on that data.

2023-12-07 . 3 min read     SwiftUI ForEach

Read More »

How to implement navigation split view in SwiftUI

n SwiftUI, the NavigationView and SplitView allow you to create split-screen layouts, especially useful for iPad applications.

2023-11-30 . 2 min read     NavigationSplitView

Read More »

The guide to Objective-C for Swift developers

The Swift programming language was created in 2014 with a particular focus on iOS and macOS development.

2023-09-17 . 3 min read     Objective C Swift

Read More »

How to use Completion Handler in Swift

When we perform network requests to fetch data from the web we have to write completion handlers to know the completion of request.It's quite handy when performing long running operations.

2023-08-26 . 2 min read     Networking

Read More »

Getting Started with SwiftData Empty space for void

There are lot of frameworks introduces on WWDC23 SwiftData is one of them. SwiftData designs to persist data using Swift code.

2023-07-07 . 2 min read     SwiftData WWDC23

Read More »

How to implement UICollectionView tutorial

UITableView is used to display lists of data, but UICollectionView is used to present complex and customized data.

2023-05-05 . 2 min read     UIKit UICollectionView

Read More »

How to write concurrent code in Swift

In a previous article, we learned how to request data from the web, handle JSON data, and make custom models using Codable.

2023-04-25 . 3 min read     Networking GCD

Read More »

How to Get Started with SwiftUI in 5 Minutes

SwiftUI is a simple and fast way to make user interface but it's quite young and missing lot of features used to make complex apps.

2023-04-23 . 5 min read     SwiftUI iOS

Read More »

Dealing with App Transport Security in Xcode

What is App transport security(ATS)?. App transport security improves user security and privacy by making secure connections to network.

2023-04-12 . 2 min read     Xcode Networking

Read More »

How to cache data in Swift using NSCache

When we develop apps for iOS, we need to perform heavy tasks such as loading images from the network, loading files, etc. It's a very time-consuming task, which affects the performance of the application.

2023-04-07 . 2 min read     Networking NSCache

Read More »

How to hit an API and parse json data

In the world of apps, practically all apps use web services to get data from the internet.It enables user to send and receive data from the web.

2023-03-22 . 4 min read     Networking API

Read More »

How to use enum in Swift Empty space for void

Enumerations (enum) enables you to write code in a type safe way. Enum is very useful while defining common type of values. You don't have to provide value while defining enum.

2023-03-07 . 2 min read     Swift Enum

Read More »

How to use UISearchController with UICollectionViewController

UISearchController is a view controller that displays search results with the help of search bar. The search controller correlate with search results controller to display the search results.

2023-01-05 . 2 min read     UIKit UISearchController

Read More »

How to integrate AdMob to an iOS app

You successfully created an app and uploaded it to the app store. You want to finally reap the rewards of your work. You have a variety of ways to monetize your app, including the premium model and freemium.

2022-08-05 . 4 min read     Admob Monetization

Read More »

Optional unwrapping syntax in Swift 5.7

Optional unwrapping is one of the most used patterns in iOS development. Swift 5.7 introduces new features included a new way to unwrap optional values using if let and guard let statements. It eliminates duplication to ...

2022-06-14 . 2 min read     Optionals Unwrapping

Read More »

How to enable large titles in your navigation bar

You can enable large titles in your navigation bar using prefersLargeTitles property. This property has boolean value true or false. When it's property value is true it indicates that title will be shown in large font format.

2022-01-11 . 2 min read     Navigation Bar

Read More »

Property observers in Swift Empty space for void

It's a common pattern or technique in various programming languages when we want to perform some action when a value is changed. Property observers are used in Swift when we want to perform an action when the value of a property changes.

2021-05-24 . 2 min read     Swift Property Observers

Read More »

The closures in Swift are explained with examples

Closures are a difficult topic to grasp in Swift, but they are simple to grasp if well described. Closures are functional blocks that can be used or passed around in code.

2021-04-11 . 3 min read     Swift Closures

Read More »

How to use guard in Swift to write code more readable

It's necessary to write more robust and simple code as long as your project goes more complex. Every line of code you are writing is matters because the more your code cleaner the more ..

2021-03-29 . 2 min read     Swift Guard

Read More »

How to implement app ratings and reviews in Swift

When you are developing app keep in mind that it is very important to engage users and ask for feedback to improve your app's experience. Your app's reviews and ratings will display on App Store which helps to increase downloads ..

2021-03-18 . 2 min read     Reviews StoreKit

Read More »

App Store screenshot guidelines for iOS and iPad app

You built your iOS app after lot of hard work and now is the time to list your app on App Store. When you list your app on App Store you need screenshots which shown on App Store.

2021-03-10 . 3 min read     Guidelines App Store

Read More »

How to implement Recursion in Swift

In Computer Science, recursive function is a function that calls itself to solve problem and this technique is called recursion. Almost all programming languages support recursion ..

2020-10-29 . 2 min read     Recursion Algorithms

Read More »

Implement Binary Search in Swift

In computer science, there are two types of algorithms commonly used to solve a problem searching and sorting algorithms. It's valuable to know which algorithm to use to perform a ..

2020-09-14 . 2 min read     Algorithms

Read More »

Difference between weak and unowned references explained

It's a good practice to know how memory management works in Swift. Swift uses Automatic Reference Counting (ARC) to manage app's memory automatically without write any additional code.

2020-07-12 . 3 min read     Weak Unowned

Read More »

The ultimate guide to iOS Unit Testing with Swift and Xcode

Unit testing is a testing method where you can test "unit" of code whether it is working as you want or not. In Xcode, use XCTest framework to perform unit tests.

2020-06-29 . 2 min read     Xcode Testing

Read More »

Difference between Struct and Classes explained in Swift

Structures and Classes are basic templates for any application which consists of properties and methods implements for behaviour. You can define structure or class ..

2020-05-06 . 2 min read     Class Struct

Read More »

Custom Operators in Swift

Swift provides a very useful feature which is to define your own custom operators. It is a very confusing topic in the beginning but it is very powerful to use. It increases our code readability ..

2020-05-04 . 2 min read     Custom Operators

Read More »

Protocol Extensions in Swift

A protocol can defines a set of methods that can be adopted by any class, but we can't write code inside.On the other hand, extensions gives us the power to write code inside methods, but it can only used for one type.

2020-05-01 . 1 min read     Protocol Extensions

Read More »