ApplitomHelpers is a Swift library that provides helpful extensions and extra helpers to your project.
I started it for my personal use and decided to publish it as an open-source. I will add more functionality as time passes.
- iOS 9.1+
- Xcode 8
You can use CocoaPods to install ApplitomHelpers
by adding it to your Podfile
:
platform :ios, '9.0'
use_frameworks!
target 'MyApp' do
pod 'ApplitomHelpers'
end
convenience init(view: UIView)
with this convenience init you can init new UIImagw with an UIView instance
func resize(newSize:CGSize) -> UIImage
func addInsets(insets: UIEdgeInsets) -> UIImage
func imageWithAlpha(_ alphaFactor: CGFloat) -> UIImage
func withCommas() -> String
returns string number with commas, for example 1000000 will return string of "1,000,000"