Ranges in Swift Explained

Aasif
By Aasif | Last Updated on December 22nd, 2021 6:43 am | 3-min read

You use ranges in Swift to define values between a lower and upper limit. Ranges are useful for creating slices of arrays, checking if a value is contained in a range, and much more. In this tutorial, we’ll discuss how you can work with ranges in Swift. We’ll discuss ranges vs. arrays, types of ranges, working with ranges and strings, and tips and tricks for practical iOS development. Table of Contents Types of Ranges in Swift Working with Ranges and Arrays Using Strings with Ra [...]

Read More

Computed Properties Explained in Swift

Aasif
By Aasif | Last Updated on December 22nd, 2021 6:43 am | 4-min read

A computed property is a property that calculates and returns a value, rather than just store it. In this tutorial, we’ll discuss how computed properties work and how you can use them in your day-to-day iOS development. Here’s what we’ll get into: What’s a computed property? How read-only computed properties work Stored vs. computed properties How to calculate a value with a computed property Getters and setters – how they work, and why you need ’em Practical examples of c [...]

Read More

Automatic Reference Counting (ARC) in Swift

Aasif
By Aasif | Last Updated on December 22nd, 2021 6:43 am | 5-min read

Automatic Reference Counting (ARC) is a mechanism to manage memory in Swift. Working with ARC concepts is essential in day-to-day iOS development. In this tutorial, we’ll discuss how ARC is used to manage memory on iOS. Here’s what you’ll learn: How Automatic Reference Counting works Why memory management is important for iOS apps How an object’s retain count affects deallocation Practical examples of managing memory Common pitfalls, like retain cycles Working with strong and [...]

Read More

How To: Market Research for Your App Idea

Aasif
By Aasif | Last Updated on December 22nd, 2021 6:43 am | 5-min read

Doing market research is essential to build your own indie app. Based on the market research you do, you can make better decisions about design, development, marketing and your app’s business. Traditionally, market research has often been done by giving surveys to focus groups. Invite a few people, let them fill out some forms or discuss a promo video, and you’re done. Based on those surveys, marketers then made decisions about the products they were trying to sell. Surveys are fraught [...]

Read More

Functions in Swift Explained

Aasif
By Aasif | Last Updated on December 22nd, 2021 6:43 am | 4-min read

In Swift you use functions to perform specific tasks in your code. It’s that simple! Functions can take input and produce output. They are particularly useful for creating a reusable tasks and actions in your code. Knowing how functions work is one of the first steps of learning iOS development. In this tutorial you’ll learn: How to use define and use functions in Swift What function parameters and its return type are How to write functions that take input and produce output The dif [...]

Read More

Most Popular Posts