Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift declare optional values

// Optional values are types that can contain nil
var optionalValue: String? // this can be done with more than strings, but for this example that's what was used
 
PREVIOUS NEXT
Tagged: #swift #declare #optional #values
ADD COMMENT
Topic
Name
5+8 =