Yonat Sharon

18pods

BadgeLabel

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

  • Objective C

BatteryView

Usage:

swift let batteryView = BatteryView(frame: smallRect) batteryView.level = 42 // anywhere in 0...100

License: MIT

  • Swift

CameraBackground

Features:

  • Both front and back camera supported.
  • Flash modes: auto, on, off.
  • Countdown timer.
  • Tap to focus.
  • Pinch to zoom.

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

  • Swift

DirectoryUploader

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

  • Swift

EditableList

A simple list of text fields, similar to Reminders.app, featuring:

  • Inline editing.
  • Adding a new row by tapping below the last row.
  • Edit mode with list reordering.
  • Supports both plain style and grouped style UITableView.

License: MIT

  • Objective C

MiniDispatch

Usage:

swift view.addConstrainedSubview(label, constrain: .Leading, .Top) view.constrain(textField, at: .Leading, to: label, at: .Trailing, diff: 8)

License: MIT

  • Swift

MiniLayout

Usage:

swift view.addConstrainedSubview(label, constrain: .Leading, .Top) view.constrain(textField, at: .Leading, to: label, at: .Trailing, diff: 8)

License: MIT

  • Swift

MultiSelectSegmentedControl

A subclass of UISegmentedControl that supports selection multiple segments.

No need for images - works with the builtin styles of UISegmentedControl.

License: MIT

  • Objective C

MultiSlider

UISlider clone with multiple thumbs and values, optional snap intervals, optional value labels.

License: MIT

  • Swift

MultiToggleButton

A UIButton subclass that implements tap-to-toggle button text. (Like the camera flash and timer buttons)

License: MIT

  • Swift

RadioGroup

License: MIT

StepProgressView

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

  • Swift

YONAutoComplete

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

  • Objective C