Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift create lazy property

lazy var decimalFormatter: NumberFormatter = {
  let formatter = NumberFormatter()
  formatter.numberStyle = .decimal
  return formatter
}()
Source by useyourloaf.com #
 
PREVIOUS NEXT
Tagged: #swift #create #lazy #property
ADD COMMENT
Topic
Name
9+5 =