Swi Interview Questions
Integration with the iOS and macOS toolchains is seamless.
Data organisation, filtering, and grouping in memory and in the user interface
(User Interface).
Object storage is supported automatically.
Property values are validated automatically.
The first object graph management framework.
The object graph's life cycle is managed using the Core Data framework.
32. What are the several methods for unwrapping an optional in
Swi ?
The several methods for unwrapping an optional in Swi are as follows:
Forced unwrapping: It consists in adding a ! a er an Optional value, to
automatically unwrap it, without having to check whether it is nil or not.
Example - let v:String = b!
Optional chaining: The technique of querying and calling properties, methods,
and subscripts on an optional that is currently nil is known as optional chaining.
The property, method, or subscript call succeeds if the optional includes a value;
if the optional is nil, the property, method, or subscript call returns nil. Multiple
inquiries can be chained together, and if any link in the chain is nil, the entire
chain will fail gracefully. Example -
let v = b?.count
Do'stlaringiz bilan baham: