How To Detect Internet Connectivity with NWPathMonitor

Samarpit Nasa
By Samarpit Nasa | February 13, 2025 5:42 am

Detecting an iOS app’s internet connectivity is useful if you want to check if the internet is reachable prior to making a network request. For example, you may want to periodically sync your app’s local data to the cloud – if the iPhone has a cellular or WiFi connection. Reachability and NWPathMonitor can help with that! Before iOS 12, a code snippet called Reachability was the de facto approach to determining if the internet could be accessed. Since iOS 12 you use a better approach, c [...]

Read More

5 Quick Tips for the Xcode 11 Minimap

Samarpit Nasa
By Samarpit Nasa | February 13, 2025 5:29 am

Xcode 11 introduced a useful feature: the code editor now has a mini map. The minimap shows an overview of your code, that you can scroll through. And, as we’ll discuss in this tutorial, it has a ton of super-useful-but-slightly-hidden features. We’ll discuss 5 quick tips for using the minimap in Xcode 11: Hover over the minimap to see functions, classes, properties, etc. Hold Command to see a quick list of functions, classes, etc. Click-and-hold inside the minimap to quickly scroll [...]

Read More

Let’s Solve The FizzBuzz Challenge in Swift

Samarpit Nasa
By Samarpit Nasa | February 13, 2025 5:23 am

FizzBuzz is a legendary coding challenge. You simply must give it a try! But… what approaches can you use to solve FizzBuzz with the Swift programming language? In this tutorial, we’re going to solve the FizzBuzz challenge in three different ways: With conditionals With the switch statement With .map() Table of Contents What is FizzBuzz? Solving FizzBuzz with Conditionals Solving FizzBuzz with Switch and Pattern Matching Solving FizzBuzz with “map(_:)” Further Rea [...]

Read More

Play With Code: Palindromes In Swift

Samarpit Nasa
By Samarpit Nasa | February 13, 2025 5:05 am

The date 02-02-2020 is a palindrome. Palindromes are words that read the same forward as backward. And they’re great fun to play with in Swift! In this app development tutorial, we’ll discuss and code 3 approaches to check if a string is a palindrome in Swift. Table of Contents What’s A Palindrome? Palindrome 1: Comparing String Characters Palindrome 2: Solving It Recursively Palindrome 3: This One Trick… Further Reading What’s A Palindrome? First things first: Wh [...]

Read More

How To: Xcode Tutorial for Beginners

Samarpit Nasa
By Samarpit Nasa | February 13, 2025 4:26 am

In this tutorial, we’re going to take a look at the most important aspects of Xcode. You’ll get a tour around Xcode, so you can get up to speed with Swift programming and iOS app development. It’s Xcode 101! Here’s what we’ll get into: What’s Xcode and what’s it for? How to download, install and update Xcode SwiftUI, iOS’s new, exciting UI framework A birds-eye view of how to use Xcode Working with navigators and inspectors How building UIs with Interface Bui [...]

Read More

Dependency Injection in Swift

Samarpit Nasa
By Samarpit Nasa | February 13, 2025 4:16 am

Dependency Injection sounds complex, but it’s actually a surprisingly simple concept. In this app development tutorial, you’ll learn how dependency injection works. Understanding dependency injection (DI) will greatly improve your code quality and productivity as a Swift developer. Many software design principles, like Don’t Repeat Yourself and SOLID, have one thing in common: they make your code more maintainable by making it modular. Instead of creating one big pile of code, you creat [...]

Read More

Working with @Binding in SwiftUI

Samarpit Nasa
By Samarpit Nasa | February 13, 2025 3:31 am

A binding in SwiftUI is a connection between a value and a view that displays and changes it. You can create your own bindings with the @Binding property wrapper, and pass bindings into views that require them. In this mobile app development tutorial, we’re going to discuss how bindings work in SwiftUI. Here’s what we’ll get into: What’s a binding and why do you need them? The difference between a binding and @Binding How to get a binding from other property wrappers, like @Sta [...]

Read More

Random Numbers in Swift

Samarpit Nasa
By Samarpit Nasa | February 13, 2025 3:00 am

Let’s take a look at randomness and random numbers in Swift. Swift has a number of built in functions that help you generate random numbers, with a few caveats though! But first… why would you need random numbers in Swift? In game apps, you use random numbers to simulate dice rolls, or even simulate “chaos” and unpredictability in your games, like random enemy positions or random upgrade spawns In practical iOS development, you use randomness to pick a random item from an array W [...]

Read More

How to Meet Mobile Users’ Expectations from a Mobile App?

Abhinav Girdhar
By Abhinav Girdhar | Abhinav Girdhar - Founder and CEO of Appy Pie | February 7, 2025 11:38 am

There are over 5 million apps on the two of the most leading app stores today and this should be enough to give you an idea about the kind of competition that your mobile app faces in reaching out to the customer. With this great number of mobile apps in the market most of the people today are presented with multiple app options for each problem that they might ever encounter or requirement that they might have. Though there is much talk about acquiring new users and people have been looking at [...]

Read More

How to Re-engage Customers in Your Mobile App? (10 Awesome Ways)

Abhinav Girdhar
By Abhinav Girdhar | Abhinav Girdhar - Founder and CEO of Appy Pie | February 7, 2025 11:00 am
How to Re-engage Customers in Your Mobile App? (10 Awesome Ways)

In this post, we are going to talk about why users stop using a mobile app they downloaded and then suggest 10 greatly effective ways in which you can bring them back to your app! This is a world of instant gratifications and many diversions! In this market it is becoming increasingly difficult to retain the customers for long. I have compiled some statistics so that you can understand what it is like for a mobile app developer who is trying to retain their app users: About 25% of t [...]

Read More

1x, 2x and 3x Image Scaling on iOS Explained

Abhinav Girdhar
By Abhinav Girdhar | Abhinav Girdhar - Founder and CEO of Appy Pie | February 7, 2025 10:58 am

How does image scaling work on iOS, and what does @2x mean? Different iPhone and iPad models have different screen sizes and pixel densities (PPI). This affects the graphics assets, images and artwork you’re going to use in your iOS app. In this tutorial, you’ll learn more about: The difference between points and pixels When to use 1x, 2x and 3x image scaling File naming conventions with @2x and @3x How to keep working with different screen resolutions simple Recommended tools and [...]

Read More

Initializers & init() Explained in Swift

Abhinav Girdhar
By Abhinav Girdhar | Abhinav Girdhar - Founder and CEO of Appy Pie | February 7, 2025 10:40 am

In Swift, an initializer is a special init() function that we use to create objects of a particular class, struct or type. They’re used to “construct” an instance of the given type. In this tutorial, we’re going to discuss how initializers work, why they’re needed, and how you can write your own. We’ll focus on the different kinds of initializers, such as convenience initializers, what the consequences are of subclassing, errors you may face in day-to-day iOS development, and much [...]

Read More

@ObservedObject and Friends in SwiftUI

Abhinav Girdhar
By Abhinav Girdhar | Abhinav Girdhar - Founder and CEO of Appy Pie | February 7, 2025 10:05 am

In this mobile app development tutorial, we’re going to discuss an approach for 2-way data flow between a web-based JSON resource and changing that data in your app. Getting data, displaying it, and sending changes back. The centerpiece is the @ObservedObject property wrapper, and we’ll also discuss how to use ObservableObject, @Published, @Binding, Combine, MVVM, and much more. Here’s what we’ll get into: How to set up 2-way data flow in a real-world Books app Working with @Obse [...]

Read More

How to Create a Live Streaming App like Twitch?

Abhinav Girdhar
By Abhinav Girdhar | Abhinav Girdhar - Founder and CEO of Appy Pie | February 7, 2025 10:02 am
How to Create a Live Streaming App like Twitch?

Live streaming has been around for a long time, but in 2020 as the world was in the throes of a pandemic, live streaming reached new heights. In the entertainment industry, live streaming gained popularity due to the gaming industry. In 2020, global users spent about 482.5 billion hours on live streaming apps, a 35% increase since the last year. Video as a format has gained way more popularity than text, picture, or audio content. People are more likely to watch a live stream than read bl [...]

Read More

How To Generate a Random Unique Identifier with UUID in Swift

Abhinav Girdhar
By Abhinav Girdhar | Abhinav Girdhar - Founder and CEO of Appy Pie | February 7, 2025 9:56 am

Random unique identifiers (UUIDs) are super useful in Swift programming. Imagine you’re storing objects in a database, and every object needs a unique ID. The generated ID needs to be unique, universally, across all devices, all users, all objects in the database. How do you generate such an ID? Table of Contents Generating Random Identifiers with UUID What’s RFC 4122? UUIDs: Universally Unique Identifiers UUIDs in Practical iOS Development Further Reading Generating Random [...]

Read More

Get Started with Xcode Playgrounds

Abhinav Girdhar
By Abhinav Girdhar | Abhinav Girdhar - Founder and CEO of Appy Pie | February 7, 2025 8:34 am

You can use playgrounds in Xcode to quickly write some Swift code, experiment with new Swift syntax, or work on your Swift algorithms skills. Most of all, playgrounds in Xcode are a great way to learn Swift programming. In this mobile app development tutorial, you’ll learn how to get started with playgrounds in Xcode. I’ll give you a brief overview of Xcode playgrounds, so you can quickly get started with Swift programming. Prerequisites for this tutorial: A Mac with macOS and Xcod [...]

Read More

The Ultimate Guide to No-Code App Development with Appy Pie

Abhinav Girdhar
By Abhinav Girdhar | Abhinav Girdhar - Founder and CEO of Appy Pie | February 7, 2025 8:10 am
The Ultimate Guide to No-Code App Development with Appy Pie

In today’s fast-paced digital world, businesses need to adapt quickly—and that includes launching mobile apps to engage customers, streamline operations, or boost sales. However, traditional app development can be time-consuming, expensive, and require technical expertise that many small to medium-sized enterprises don’t have. This is where no-code platforms come in. In this ultimate guide, we’ll explore everything you need to know about no-code app development, with a special focus o [...]

Read More

Escaping Closures in Swift Explained

Abhinav Girdhar
By Abhinav Girdhar | Abhinav Girdhar - Founder and CEO of Appy Pie | February 7, 2025 4:34 am
Escaping Closures in Swift Explained

A closure is said to “escape” a function when it’s called after that function returns. In Swift, closures are non-escaping by default. What are escaping closures, anyway? And what do you use @escaping for? Let’s find out! This mobile app development tutorial discusses closures, escaping vs. non-escaping, capture lists and retain cycles, and what that means for practical iOS development. What we’ll get into: What escaping closures are, and why you need them How and when to use [...]

Read More

Map, Reduce and Filter in Swift

Abhinav Girdhar
By Abhinav Girdhar | Abhinav Girdhar - Founder and CEO of Appy Pie | February 6, 2025 1:26 pm
Map, Reduce and Filter in Swift

In Swift you use map(), reduce() and filter() to loop over collections like arrays and dictionaries, without using a for-loop. The map, reduce and filter functions come from the realm of functional programming (FP). They’re called higher-order functions, because they take functions as input. You’re applying a function to an array, for example, to transform its data. Swift’s Map, Reduce and Filter functions can challenging to wrap your head around. Especially if you’ve always coded [...]

Read More

How To: Pass Data Between Views with SwiftUI

Abhinav Girdhar
By Abhinav Girdhar | Abhinav Girdhar - Founder and CEO of Appy Pie | Last Updated on February 7th, 2025 1:54 pm
How To Pass Data Between Views with SwiftUI

How do you pass data between views in SwiftUI? If you’ve got multiple views in your SwiftUI app, you’re gonna want to share the data from one view with the next. We’re going to discuss 4 approaches to do so in this app development tutorial! Here’s what we’ll get into: Passing data between views using a property Working with @State and @Binding Passing data via the view’s environment Passing data via @ObservedObject and @StateObject Table of Contents Passing Data [...]

Read More

Most Popular Posts