github devxoul/Then 2.0.0

latest releases: 3.0.0, 2.7.0, 2.6.0...
7 years ago
  • Now supports Swift 3 🎉

  • then() on value types are renamed to with(). (Actually both then() and with() are available on value types and do the same thing, but with() 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("devxoul@gmail.com", forKey: "email")
      $0.synchronize()
    }

Don't miss a new Then release

NewReleases is sending notifications on new releases.