Robin Kanatzar

My name is Robin Kanatzar. I'm an iOS and Android engineer with a passion for creating accessible mobile apps.

Tuples

June 12, 2023 In Swift, you have many kinds of data. Each kind or category of data is called a type. You’ve seen types in action in variable declarations: let myString: String let myInt: Int In this example above,...

Raw Strings

June 12, 2023 In Swift you can create a String by sandwiching it between quotation marks: let myString = "This is a string" Starting with Swift 5, you can also create what is called a raw string by addin...

Convenience Init

June 10, 2023 Init init is a keyword in Swift. It it shorthand for “initialization.” It is used to designate a special type of instance method in classes, structs, and enums. This special instance method has one go...

Cheat Sheet: Documentation and DocC

June 10, 2023 Code comments One line and multi-line comments Within your code base, you can add comments that will be seen in the documentation: /// One line comment /* Multi line comment */ Shortcut for documen...

Defer

June 9, 2023 What is it? defer is a keyword in Swift. A defer statement looks like this: defer { ... } Inside of the defer statement , within the brackets, you have executable code. defer { print("Executable...