Scream.swift

MIT License
Swift
iOS

1 image

Author

Description

UIKit's extensions to use closure in Swift.

Scream.swift is a wrapper for UIKit that lets you replace target and selector with closure.

self.button = (UIButton.buttonWithType(.Custom) as UIButton).now{ btn in
  //Custom button
  ...
}.clicked { btn in
  //Do something
}.when(label:"repeat") {
  //Do something
}

Tags