Get Started with Xcode Playgrounds

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

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 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 Xcode 8 or higher (Xcode 11 [...]

Read More

Working with Stacks in SwiftUI

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

You use stacks in SwiftUI to group views together. You can choose from the VStack, HStack and ZStack, and combine them to build complex layouts. In this tutorial, you’ll learn how to use stack views with SwiftUI. What we’ll discuss: How to use VStack, HStack and ZStack Approaches to position views within stacks How to use alignment and spacing parameters Building complex views by combining stacks Table of Contents What’s a Stack? VStack, HStack and ZStack in SwiftUI Stac [...]

Read More

The Rise in Mobile Shopping (Podcast 101)

Dami Opara
By Dami Opara | Last Updated on January 7th, 2022 4:29 pm
The Rise in Mobile shopping podcast 101

Listen to this storyYour browser does not support the audio element. Highlights: Effective data management will provide valuable customer insights Adapt or die - digital transformation is key for continued survival Cryptocurrency payments could become mainstream As consumers rely more on technology for the [...]

Read More

Scope and Context Explained in Swift

Aasif
By Aasif | December 9, 2021 8:09 pm  | 5-min read

What’s “scope” in Swift programming? The concept of scope states that, if you’ve declared a variable in one “place” of your code, you cannot use it outside that place. It’s an implicit but essential rule in programming, and it can be challenging to grasp at first. In this tutorial, we’ll focus on exploring scope, and what it means for practical iOS development. Here’s what we’ll discuss: How to solve the Cannot find ‘x’ in scope error What’s scope, and how is [...]

Read More

SwiftUI’s App Lifecycle Explained

Aasif
By Aasif | December 9, 2021 6:59 pm  | 5-min read

Bye-bye AppDelegate! You can now build SwiftUI apps with the new App protocol and lifecycle, without needing an app- or scene delegate. How does the SwiftUI App lifecycle work? And how do you configure it? Let’s find out! In this tutorial, we’ll discuss: How the SwiftUI App lifecycle and your App struct works Working with @main, scenes and lifecycle events Bootstrapping your app’s UIs with the App protocol Working with UIApplicationDelegateAdaptor the “old way” Table of [...]

Read More