Skip to content

Instantly share code, notes, and snippets.

View gregorymfoster's full-sized avatar
💭
Building cursor

Greg Foster gregorymfoster

💭
Building cursor
View GitHub Profile
@gregorymfoster
gregorymfoster / unwrap.swift
Created January 8, 2018 05:58
Unwrapping Optional Swift Value
if let sideLength = optionalSquare?.sideLength {
println("sideLength is not nil")
} else {
println("sidelength is nil")
}