Skip to main content

Swift Topics

Swift Important Topics


Topics
What is value types and reference types in Swift?

What are optionals in Swift?
·      What is an implicitly unwrapped optional?
·      What are the correct ways to unwrap an optional value?
·      What is optional chaining?



In an enum what are raw and associated values?

What is Closures?
·      Trailing Closures?
·      Closures as Reference Types?
·      Escaping Closures?
·      AutoClosures?


What is Capturing Values?
What does it mean to “capture self” in a closure and why can it lead to a memory leak?



What are the Access Controls?
·      open,
·      public,
·      internal,
·      private,
·      fileprivate

When casting, when would you use as? vs as!

What is the difference between Objective-C and Swift for handling errors?

What does the @escaping keyword mean?

What is Object Comparison
·      Eqaulity ==
·      Identitiy ===

What are type aliases?
What does inferred typing mean in Swift?
What is type safety?
Nil-Coalescing Operator
Range Operators
·      Closed Range Operator
·      Half-Open Range Operator
What is Unified Logging?
guard Statement

Automatic Reference Counting (ARC) in Swift
·      How ARC Works
·      Strong Reference Cycles Between Class Instances
·      Resolving Strong Reference Cycles Between Class Instances
·      Weak References
·      Unowned References


What are failable and throwing initializers?
What are designated and convenience initializers?


What’s new in String ?
·      String Interpolation
·      Extended Grapheme Clusters
·      Unicode Representations of Strings


What’s Tuple in Swift ?
Properties
·      Stored Properties
·      Lazy Stored Properties
·      Stored Properties and Instance Variables
·      Computed Properties
·      Read-Only Computed Properties
·      Property Observers
·      Querying and Setting Type Properties

What’s new in Swift Collections?

What are generics in Swift?

What’s new in Swift Control Flow?

What’s new in Swift Functions?
·      What is In-Out Parameters?
·      Function Types as Parameter Types
·      Function Types as Return Types
·      How do we use Functions as first class type?


What is mutating method?
Mutating Method Requirements

Interoperability between Swift and Objective-C
·      Bridged Types
·      id Compatibility
·      Downcasting Any
·      Unrecognized Selectors and Optional Chaining
·      Nullability and Optionals
·      Bridging Optionals to Nonnullable Objects
·      Extensions
·      Selectors
·      Keys and Key Paths


Adopting Cocoa Design Patterns in Swift from Obj-C
·      Delegation
·      Lazy Initialization
·      Error Handling
·      Key-Value Observing
·      Target-Action
·      Singleton
·      Introspection
·      Serializing


Comments