Latest 1.0.2
Homepage https://github.com/muukii/TransitionPatch
License MIT
Platforms ios 8.0, osx 10.13
Frameworks Foundation
Authors

Sample

let value = ValuePatch(10)
  .progress(start: 0, end: 13)
  .clip(min: 0, max: 1)
  .reverse()
  .transition(start: 30, end: 60)
  .value

// value == 36.92307692307692

Functions

Make a Progress

Make a value of progress from CGFloat between a range.

let progress: ProgressPatch = ValuePatch(10)
  .progress(start: 5, end: 15)

// progress.fractionCompleted == 0.5

Make a Transition from progress

Make a value of transition from progress between start and end.

let value: ValuePatch = ProgressPatch(0.5)
  .transition(start: 10, end: 20)

// value.value == 15

Latest podspec

{
    "name": "TransitionPatch",
    "version": "1.0.2",
    "summary": "A micro framework to calculate value for transition.",
    "description": "A micro-framework to calculate a value for the transition.nCan define converting value flow declaratively.",
    "license": "MIT",
    "authors": {
        "Muukii": "[email protected]  "
    },
    "social_media_url": "http://twitter.com/muukii_app",
    "platforms": {
        "ios": "8.0",
        "osx": "10.13"
    },
    "source": {
        "git": "https://github.com/muukii/TransitionPatch.git",
        "tag": "1.0.2"
    },
    "source_files": "TransitionPatch/*.swift",
    "homepage": "https://github.com/muukii/TransitionPatch",
    "frameworks": [
        "Foundation"
    ]
}

Pin It on Pinterest

Share This