22pods
Basic usage:
objective-c
BadgeLabel *badge = [BadgeLabel new];
badge.text = @"42";
Configure appearance:
objective-c
badge.backgroundColor = [UIColor blueColor];
badge.hasBorder = YES;
badge.hasGloss = NO;
License: MIT
Usage:
swift
let batteryView = BatteryView(frame: smallRect)
batteryView.level = 42 // anywhere in 0...100
License: MIT
Features:
Usage:
swift
view.addCameraBackground()
// ...
view.takeCameraSnapshot( {
// animate snapshot capture
self.view.alpha = 0
UIView.animateWithDuration(1) { self.view.alpha = 1 }
},
completion: { (capturedImage, error) -> () in
self.view.freeCameraSnapshot() // unfreeze image
// ... handle capturedImage and error
}
)
// ...
view.removeCameraBackground()
License: MIT
Monitors a directory and automatically detects new files added to it. Uploads all files to a target URL, and cleans up afterwards.
Usage:
swift
let uploader = DirectoryUploader(sourceDirectory: docDir, targetURL: endpointURL)
// now save files to docDir, and they will be automatically uploaded to endpointURL.
License: MIT
A simple list of text fields, similar to Reminders.app, featuring:
License: MIT
Usage:
swift
view.addConstrainedSubview(label, constrain: .Leading, .Top)
view.constrain(textField, at: .Leading, to: label, at: .Trailing, diff: 8)
License: MIT
Usage:
swift
view.addConstrainedSubview(label, constrain: .Leading, .Top)
view.constrain(textField, at: .Leading, to: label, at: .Trailing, diff: 8)
License: MIT
A subclass of UISegmentedControl that supports selection multiple segments.
No need for images - works with the builtin styles of UISegmentedControl.
License: MIT
UISlider clone with multiple thumbs and values, optional snap intervals, optional value labels.
License: MIT
A UIButton subclass that implements tap-to-toggle button text. (Like the camera flash and timer buttons)
License: MIT
Usage:
```swift let progressView = StepProgressView(frame: view.bounds) progressView.steps = ["First", "Second", "Third", "Last"]
progressView.currentStep = 0 // started first step ... progressView.currentStep = 4 // all done ```
License: MIT
Simplest auto-complete:
just create a YONAutoComplete
object and assign it as the delegate of a UITextField
:
objective-c
YONAutoComplete *autoComplete = [YONAutoComplete new];
textField.delegate = autoComplete;
The user can either choose from the list of completions, or type a new value that will be added to the list automatically.
License: MIT