- #Macbook ios paintcode how to
- #Macbook ios paintcode update
- #Macbook ios paintcode code
- #Macbook ios paintcode mac
If you use it, i'll be happy to know about it.
#Macbook ios paintcode code
Technical details:Īll source code is licensed under the MIT License. That's how I did the Github and Twitter logos, for example. svg file, and it is going to create the code to create its BezierPath. Var myLoader = WavesLoader.showProgressBasedLoaderWithPath(myPath)Ī feature that I LOVE from PaintCode is that you can import an. The only thing we have to do here is extract the CGPath from the UIBezierPath like so: let myPath = starPath.CGPath StarPath.addLineToPoint(CGPointMake(139.1, 49.88)) StarPath.addLineToPoint(CGPointMake(180, 82.6))
StarPath.addLineToPoint(CGPointMake(220.9, 49.88)) StarPath.moveToPoint(CGPointMake(180, 25)) In the case of drawing a star, it is going to give us this code: //// Star Drawing In this case we can use it to create BezierPaths, and extract from there the CGPath. You can just draw things, and it will automagically create the code for you
#Macbook ios paintcode mac
PaintCode is a realy powerful Mac app that can do a lot of things.
#Macbook ios paintcode how to
How to create my own CGPath? :warning: The CGPath bounds cannot exceed the bounds of the loaderView: To manually add FillableLoaders to your project you just need to copy the Source folder files. Carthage github "poolqf/FillableLoaders" ~> "1.3.0".
#Macbook ios paintcode update
It will automatically fire an animation to update the loader fill progressīackground of the loader view (transparent by default)Īlpha of the loader view (1.0 by default)Ĭorner radius of the loader view (0.0 by default)ĭuration of the animations (10.0 by default)īool to indicate if the loader has to swing when going up (small rotation, not available for the Plain loader)Įxtra property for Spikes and Rounded loaders:
Indicates if the loader movement is progress based or not (Default: false) Just call the method removeLoader() and the loader will disappear and will also be removed from its superview.Īpart from being able to customize the loader shape, you can also customize other properties of the loader. createProgressBasedLoaderWithPath(path:onView:).showProgressBasedLoaderWithPath(path:onView:).Var loader = WavesLoader.createLoaderWithPath(path)Īll the methods wave the variant version where you can pass it the view in which you want to add the loader: Var loader = WavesLoader.createProgressBasedLoaderWithPath(path)
If you want to create the loader, and not show it at the same moment, you can use createProgressBasedLoaderWithPath(path:) or createLoaderWithPath(path:) to create it, and when you want to show it, just call showLoader() So, it is just a helper method to do everything at once. ShowLoaderWithPath(path:) or showProgressBasedLoaderWithPath(path:) are going to call the create one, and after it, are going to call the showLoader() method. ShowProgressBasedLoaderWithPath(path:), createProgressBasedLoaderWithPath(path:), showLoaderWithPath(path:) and createLoaderWithPath(path:) There are four main methods to create the loaders: