π Own delightful library that supports my iOS dev π
Like RxSwift and KingFisher notation, all instance & class method is invoked through a special property 'crea'.
let randomNo = [1,2,3,4,5].crea.random
UIViewController.crea.isNetworkAvailable(host_name: "https://www.google.co.jp/")
As a result, we can distinguish easily between a function come from this library or not.
animation: chriseidhof/boom.swift
# Uncomment the next line to define a global platform for your project
platform :ios, '10.3'
target '##Target Name##' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Target
pod 'Crea'
end
github "creaaa/Crea"
That's it!
Hope you like it, stay tuned!
Name | Signature |
---|---|
addConstraints |
addConstraints (for childView: UIView, insets: UIEdgeInsets = .zero) |
Name | Signature |
---|---|
showAlert |
showAlert (title: String, message: String? = nil, style: UIAlertControllerStyle = .alert) |
pushViewController |
pushViewController (viewController: UIViewController, animated: Bool, completion: (() -> Void)? = nil) |
popViewController |
popViewController (animated: Bool, completion: (() -> Void)? = nil) |
Name | Signatures |
---|---|
isNetworkAvailable |
isNetworkAvailable (host_name: String) -> Bool |
Name | Signatures |
---|---|
navBarTitle |
navBarTitle (color: UIColor, fontName: String = "Helvetica", size: CGFloat = 12) |
navBarColor |
navBarColor (color: UIColor) |
Name | Signatures |
---|---|
tabBarColorSelected |
tabBarColorSelected (color: UIColor) |
tabBarColorUnselected |
tabBarColorUnselected (color: UIColor) |
tabBarItem |
tabBarItem (color: UIColor, fontName: String = "Helvetica", size: CGFloat = 12) |
Name | Signatures |
---|---|
barBtn |
barBtn (color: UIColor, fontName: String = "Helvetica", size: CGFloat = 12) |
Name | Signature |
---|---|
resizeUIImage |
resizeUIImage (width: CGFloat, height: CGFloat) -> UIImage! |
Name | Signature |
---|---|
kern |
kern (value: CGFloat) |
Name |
---|
AssociatedType? random |
Name | Signatures |
---|---|
date |
date (from string: String, format: String = "yyyy-MM-dd") -> Date? |
string |
string (date: Date, format: String = "yyyy-MM-dd") -> String |
Name | Signatures |
---|---|
random |
random (from: Int, to: Int) -> Int |