CODEX

Image for post
Image for post
Photo by Ilija Boshkov on Unsplash

1. Shorter If…Else Statements with Ternary Operators

let money = 100if money > 0 {
print("Some money")
} else {
print("No money")
}
money > 0 ? print("Some money") : print("No money")

2. Destructuring Tuples

func getInfo() -> (name: String, email: String) {
return (name: "Matt", email: "matt@example.com")
}


Learn how to add a continuously flowing smooth animated gradient to your app.

Image for post
Image for post

Setting Up a Gradient

Choosing the colors

Using the Colors

let color1: CGColor = UIColor(red: 209/255, green: 107/255, blue: 165/255, alpha: 1).cgColorlet color2: CGColor = UIColor(red: 134/255, green: 168/255, blue: 231/255, alpha: 1).cgColorlet color3…


CODEX

Image for post
Image for post
Photo by Markus Winkler on Unsplash

A Brief Comparison

The Key Difference


CODEX

Have you ever wondered what @escaping means when working with closures in Swift?

Image for post
Image for post
Photo by Clément Hélardot on Unsplash

Escaping Closure Example


Learn everything about writing on Medium in 2021

Image for post
Image for post
Photo by Kaitlyn Baker on Unsplash

How to Write and Publish an Article


CODEX

Boost your efficiency and avoid manual repetition by creating reusable code snippets in Xcode.

Image for post
Image for post
Photo by Blake Connally on Unsplash

Code Snippets in Xcode

How to Find Code Snippets in Xcode


CODEX

Quickly learn what a dictionary is and how to use it by following some simple examples.

Image for post
Image for post
Photo by Pisit Heng on Unsplash

Dictionaries in Swift

Create a New Dictionary

var footballers: [String: Int] = [
"Ronaldo": 7,
"Messi": 10
]


CODEX

All the keywords used in expressions and types with useful examples. These include keywords such as self, try, catch, etc.

Image for post
Image for post
Photo by Alexandru Acea on Unsplash

Keywords in Expressions and Types

Any


CODEX

A Complete list of statement-related keywords, such as continue, default, while, etc.

Image for post
Image for post


CODEX

Find a complete list of all the declaration keywords used in Swift, such as Protocol, Fileprivate, Typealias, etc. with useful examples.

Image for post
Image for post

Artturi Jalli

Entrepreneur, Software Engineer, Mobile App Dev, MSc Physics Student, And Tech Enthusiast from Finland

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store