KEMBAR78
Swift Advanced Lab | PDF
0% found this document useful (0 votes)
5 views1 page

Swift Advanced Lab

The document is a lab manual for advanced programming in Swift, specifically focusing on optionals. It provides an example of how to use optionals in Swift, demonstrating the unwrapping of an optional string variable. The output of the code confirms that the optional was successfully unwrapped and printed.

Uploaded by

hitsaiml2c
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Swift Advanced Lab

The document is a lab manual for advanced programming in Swift, specifically focusing on optionals. It provides an example of how to use optionals in Swift, demonstrating the unwrapping of an optional string variable. The output of the code confirms that the optional was successfully unwrapped and printed.

Uploaded by

hitsaiml2c
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Swift Advanced Programming Lab

Lab Manual: Advanced Level Programs

Contents:

1. 1. Optionals Example

1. Optionals Example
Code:

var name: String? = "Apple"


if let unwrapped = name {
print("Name is \(unwrapped)")
}

Output:

Name is Apple

You might also like