Skip to content

Flow 2.0

Latest
Compare
Choose a tag to compare
@JohnSundell JohnSundell released this 06 Oct 09:47
· 3 commits to master since this release

This release moves Flow to Swift 3 by default (you can either use earlier versions or the swift2 branch if you want to use Swift 2) and updates the API to conform to the Swift API naming guidelines.

⚠️ Note that this release includes breaking changes for users of Flow 1.x. Please upgrade with caution and make sure that you migrate to the new APIs. Also note that Flow 2.0 is only compatible with Swift 3.

Updated APIs

  • FlowOperation.performWithCompletionHandler() is now perform(completionHandler:).
  • FlowOperationCollection.addOperation() is now add(operation:).
  • FlowOperationCollection.addOperations() is now add(operations:).

New APIs

  • You can now pause & resume a FlowOpeationQueue using the paused property. You can also set paused as part of the initializer.