Robin Kanatzar

@robinkanatzar

62 Points 0 Followers

5 Posts

0 Answers

Senior iOS and Android Engineer | Passionate about accessibility | Speaker (she/her)

Robin Kanatzar · 1 year ago

Tuples

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 exam...

Robin Kanatzar · 1 year ago

Raw Strings

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 strin...

Robin Kanatzar · 1 year ago

Convenience Init

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...

Robin Kanatzar · 1 year ago

Cheat Sheet: Documentation and DocC

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 f...

Robin Kanatzar · 1 year ago

Defer

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("...

Loading More Content