Then v2.0.0 Release Notes
Release Date: 2016-09-14 // over 7 years ago-
๐ฑ Now supports Swift 3 ๐
then()
on value types are renamed towith()
. (Actually boththen()
andwith()
are available on value types and do the same thing, butwith()
does make more sense because it's about copying.)let point = CGPoint().with { $0.x = 10$0.y = 20}
โ Add Then extensions on CoreGraphics by default.
โ Add
do()
in class types to execute something without returning value.UserDefaults.standard.do { $0.set("devxoul", forKey: "username") $0.set("[email protected]", forKey: "email") $0.synchronize() }