Answers for "declare empty string in swift"

0

declare empty string in swift

// Create a literal empty string
var emptyString = ""

// Create an optional string
var emptyVariable: String?  // This allows this variable to have a null value, or nil in swift
Posted by: Guest on May-22-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language