Swiftpack.co -  heestand-xyz/LiveValues as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
LiveValues for iOS, tvOS & macOS
.package(url: "https://github.com/heestand-xyz/LiveValues.git", from: "1.3.0")


License Cocoapods Platform


Live values are automatically updated when they have changin values. Live values are ease to animate with the .live or .seconds static properites.


Install with CocoaPods.

pod 'LiveValues'
import LiveValues


  • CGFloat --> LiveFloat
  • Int --> LiveInt
  • Bool --> LiveBool
  • CGPoint --> LivePoint
  • CGSize --> LiveSize
  • CGRect --> LiveRect
  • UIColor --> LiveColor

Static properites:

  • LiveFloat.live
  • LiveFloat.seconds
  • LiveFloat.secondsSince1970
  • LiveFloat.gyroX
  • LiveFloat.gyroY
  • LiveFloat.gyroZ
  • LiveFloat.accelerationX/Y/Z
  • LiveFloat.magneticFieldX/Y/Z
  • LiveFloat.deviceAttitudeX/Y/Z
  • LiveFloat.deviceGravityX/Y/Z
  • LiveFloat.deviceHeading


  • liveFloat.delay(seconds: 1.0)
  • liveFloat.filter(seconds: 1.0)
  • liveFloat.filter(frames: 60)

Static functions:

  • LiveFloat.noise(range: -1.0...1.0, for: 1.0)
  • LiveFloat.wave(range: -1.0...1.0, for: 1.0)


Here's an example of live midi values in range 0.0 to 1.0.

let midiAny = LiveFloat.midiAny
let midiValue = .midi("<address>")

You can find the addresses by enabeling logging like this:

MIDI.main.log = true


Stars: 4
Last commit: 5 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API