ActionClosurable alternatives and similar libraries
Based on the "Utility" category.
Alternatively, view ActionClosurable alternatives based on common mentions on social networks and blogs.
-
swift-algorithm-club
Algorithms and data structures in Swift, with explanations! -
SwifterSwift
A handy collection of more than 500 native Swift extensions to boost your productivity. -
BlocksKit
The Objective-C block utilities you always wish you had. -
libextobjc
A Cocoa library to extend the Objective-C programming language. -
InAppSettingsKit
This iOS framework allows settings to be in-app in addition to or instead of being in the Settings app. -
EKAlgorithms
EKAlgorithms contains some well known CS algorithms & data structures. -
DifferenceKit
💻 A fast and flexible O(n) difference algorithm framework for Swift collection. -
EZSwiftExtensions
:smirk: How Swift standard types and classes were supposed to work. -
Reusable
A Swift mixin for reusing views easily and in a type-safe way (UITableViewCells, UICollectionViewCells, custom UIViews, ViewControllers, Storyboards…) -
ObjectiveSugar
ObjectiveC additions for humans. Ruby style. -
WhatsNew
Showcase new features after an app update similar to Pages, Numbers and Keynote. -
SwiftLinkPreview
It makes a preview from an URL, grabbing all the information such as title, relevant texts and images. -
BFKit-Swift
BFKit-Swift is a collection of useful classes, structs and extensions to develop Apps faster. -
BFKit
BFKit is a collection of useful classes and categories to develop Apps faster. -
RateLimit
Simple utility for only executing code every so often. -
ReadabilityKit
Preview extractor for news, articles and full-texts in Swift -
VTAcknowledgementsViewController
Acknowledgements screen displaying a list of licenses, for example from CocoaPods dependencies. -
ObjectiveKit
Swift-friendly API for a set of powerful Objective C runtime functions. -
SwiftFoundation
Cross-Platform, Protocol-Oriented Programming base library to complement the Swift Standard Library. (Pure Swift, Supports Linux) -
AssistantKit
Easy way to detect iOS device properties, OS versions and work with screen sizes. Powered by Swift. -
DeviceGuru
DeviceGuru is a simple lib (Swift) to know the exact type of the device, e.g. iPhone 6 or iPhone 6s. Please ⭐️ this repo on the top right corner to make this repo popular. -
SwiftyUtils
All the reusable code that we need in each project -
Eject
An eject button for Interface Builder to generate swift code -
Retry
Haven't you wished for `try` to sometimes try a little harder? Meet `retry` -
Standard Template Protocols
Protocols for your every day iOS needs -
YAML.framework
Proper YAML support for Objective-C. Based on recommended libyaml. -
SBConstants
Generate a constants file by grabbing identifiers from storyboards in a project. -
ReflectableEnum
Reflection for enumerations in Objective-C. -
ZamzamKit
A Swift package for rapid development using a collection of micro utility extensions for Standard Library, Foundation, and other native frameworks. -
XestiMonitors
An extensible monitoring framework written in Swift
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of ActionClosurable or a related project?
README
ActionClosurable
Usage
ActionClosurable extends UIControl
, UIButton
, UIRefreshControl
, UIGestureRecognizer
and UIBarButtonItem
.
It helps writing swifty code with closure, instead of target and action like below:
// UIControl
button.on(.touchDown) {
$0.backgroundColor = UIColor.redColor()
}
button.on(.touchUpOutside) {
$0.backgroundColor = UIColor.whiteColor()
}
// UIButton
button.onTap {
$0.enabled = false
}
// UIRefreshControl
tableView.refreshControl = UIRefreshControl { refreshControl in
DispatchQueue.main.asyncAfter(deadline: .now() + 5) {
refreshControl.endRefreshing()
}
}
// UIGestureRecognizer
label.addGestureRecognizer(UIPanGestureRecognizer { (gr) in
print("UIPanGestureRecognizer fire")
})
// UIBarButtonItem
let barButtonItem = UIBarButtonItem(title: "title", style: .plain) { _ in
print("barButtonItem title")
}
// And you can easily extend any NSObject subclasses!
And you can extend any NSObject subclasses in very easy way. Refer to the source.
Installation
ActionClosurable is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ActionClosurable"
ActionClosurable is available through Carthage. To install it, simply add the following line to your Cartfile:
github "takasek/ActionClosurable"
ActionClosurable is available through Swift Package Manager. To install it, add dependency in Package.swift
:
let package = Package(
...
dependencies: [
.package(url: "[email protected]:takasek/ActionClosurable.git", from: "2.1.0"),
],
...
)
Author
License
ActionClosurable is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the ActionClosurable README section above
are relevant to that project's source code only.