Showing posts with label variable. Show all posts
Showing posts with label variable. Show all posts

Monday, January 19, 2015

Member Declarations

Variable Members

var myFirstName = "Mark" // Implicit - Will make variable a string
var myLastName: String = "Moeykens" // Explicit
var accountBalance: Float = 5012.123456
var measure: Double = 1.123456789012345
var isBlogging = true // Implicitly converts "isBlogging" to boolean

Constant Members 

 
let thing = "tree"
thing = "stone" // This is invalid
 

Friday, November 14, 2014

Swift Variable Types

String
Int
-999,999,999,999,999,999 to 999,999,999,999,999,999 Same as Int64
Double
-0.12345678901234 to 0.12345678901234Someone said 15 digits of precision but when I go to 15, Swift rounds the number. At 14 digits the original value is retained.
Float
-0.123456 to 0.1234566 digit precision
Bool

SwiftUI Search & Filter with Combine - Part 3 (iOS, Xcode 13, SwiftUI, 2...

In part 3 of the Searchable video series, I show you how to use Combine in #SwiftUI for the search and filter logic connected to the searcha...