CocoaPods trunk is moving to be read-only. Read more on the blog, there are 13 months to go.
| TestsTested | ✗ |
| LangLanguage | SwiftSwift |
| License | MIT |
| ReleasedLast Release | Mar 2016 |
| SPMSupports SPM | ✗ |
Maintained by yukawase.
To run the example project, clone the repo, and run pod install from the Example directory first.
AloeUtils is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "AloeUtils"import AloeUtils
let moveView = UIView(frame: CGRectMake(0, 0, 100, 100))
AloeTween.doTween(0.2, ease: .InCirc) { (val) -> () in
// val 0.0〜1.0
moveView.transform = CGAffineTransformMakeTranslation(200*val, 200*val)
}import AloeUtils
AloeChain()
.wait(0.5) // wait
.call{ () -> () in
// func
}
.add(0.3, ease: .None) { (val) -> () in
// tween
}
.execute() // executeimport AloeUtils
let imageUrl = "http://〜"
AloeImage.instance.loadImage(imageUrl, callback: { (image, key, useCache) -> () in
let imageView = UIImageView(image: image)
self.view.addSubview(imageView)
}) { () -> () in
print("fail load image")
}
// clearCache
AloeImage.instance.clearImageCache()
AloeLocation.instance.requestCurrentLocation({ (lat, lng) -> () in
// success
}) { (status) -> () in
// fail
}let cameraService = AloeCameraService()
private func startCameraCapture(){
cameraService.setup(AloeCameraServicePosition.Back)
cameraService.delegate = self
cameraService.start()
}
func onOutputBuffer(ciImage: CIImage) {
let image = UIImage(CIImage: ciImage)
print("image size.width:\(image.size.width)")
}yu kawase, [email protected]
AloeUtils is available under the MIT license. See the LICENSE file for more info.