Skip to content

2.0.0

Compare
Choose a tag to compare
@devxoul devxoul released this 14 Sep 20:37
· 66 commits to master since this release
  • 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("[email protected]", forKey: "email")
      $0.synchronize()
    }