hansemannn / ti.fluidview

🌊 Support for the BAFluidView with Titanium Mobile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ti.FluidView

Summary

Ti.FluidView is an open-source project to support the BAFluidView library in Appcelerator's Titanium Mobile.

Requirements

  • Titanium Mobile SDK 5.2.0.GA or later
  • iOS 7.1 or later
  • Xcode 6.4 or later

Download + Setup

Download

Setup

Unpack the module and place it inside the modules/iphone/ folder of your project. Edit the modules section of your tiapp.xml file to include this module:

<modules>
    <module platform="iphone">ti.fluidview</module>
</modules>

Features

View

Properties

  • fillColor
  • fillAutoReverse
  • fillRepeatCount
  • fillDuration
  • strokeColor
  • strokeWidth
  • lineWidth
  • maxAmplitude
  • minAmplitude
  • amplitudeIncrement

Methods

  • fillTo()
  • startAnimation()
  • startTiltAnimation()
  • stopAnimation()
  • keepStationary()

Example

var win = Titanium.UI.createWindow({  
    backgroundColor:'#fff'
});

var Fluid = require("ti.fluidview");
var fluidView = Fluid.createView({
    fillColor: "green"
    // Expose more from the above properties here
});

win.add(fluidView);
win.open();

Author

Hans Knoechel (@hansemannnn / Web)

License

Apache 2.0

Contributing

Code contributions are greatly appreciated, please submit a new pull request!

About

🌊 Support for the BAFluidView with Titanium Mobile

License:Other


Languages

Language:Objective-C 82.3%Language:Python 17.2%Language:JavaScript 0.5%