iOS

Modularise your app with Swift Package Manager (SPM)

Introduction SPM - Swift Package Manager is a tool for managing the distribution of Reusable Swift code. With the term ‘Distribution’ there comes a question of how to distribute. The answer is Package. It’s nothing new as we are already using some third-party, open-source code or writing our reusable, distributable code with...

by Ankit Nigam
Tag: swift
26-Jul-2023

iOS

Concurrency with swift: Structured concurrency

This is part 2 of the article series on Concurrency with Swift. The article’s content assumes that the reader understands the Async/Await concept. If you are unfamiliar with the Async/Await concept, please read the first part: Concurrency with Swift: Async/Await. Before we learn Structured Concurrency, it is essential to understand...

by Ankit Nigam
Tag: swift
13-Feb-2023

iOS, Mobility

Swift For-Loops

In Swift 3.0 C-style for-loops will be removed. This will force developers to use a swift syntax for for-loops. So lets begin with swift for loops : Looping n times [code language="objc"] // output is 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 for i in 0..<10 { print(i) } // or for i in 0...9 { print(i) } [/code] Looping n...

by Ashu Baweja
Tag: swift
10-Jul-2016

iOS, Technology

12 Key Differences between Objective C and Swift

Apple recently unveiled a new programming language Swift, to replace Objective-C for OS X and iOS application development. The advent of Swift marks the transformation from a decade old language to a naive yet effective programming language - Swift. The main purpose of introducing Swift is to provide a new easier, simpler, more flexible...

by Swati Khatri
Tag: swift
21-Jun-2016

iOS, Mobility

What’s New in Swift 2.0

One year ago, Apple released Swift, a brand new programming language for both iOS and OS X development and now they introduced Swift 2 with Xcode 7 this year. Swift 2 includes some new features such as improved error handling, availability check and , protocol extensions etc. Lets take the overview of new features. Error handling : ...

by Ashu Baweja
Tag: swift
04-Nov-2015