This is a repository of essential scripts written in Swift for Loverde Co. used to save time on re-writing and keeping it on all other projects. So this Cocoapods will evolve with Swift and will improve with every release!
- Many usefull scripts extensions
- Background Thread
- Custom change Root View Controller with animation
- Pop To View Controller with animation
- Stars Rating Designable
- Many others usefull Designables
- Create a XCode Proj example with principal features
You can use CocoaPods to install LCEssentials
by adding it to your Podfile
:
platform :ios, '15.0'
use_frameworks!
# Swift 5.0
pod 'LCEssentials'
# Swift 4.2
pod 'LCEssentials', '~> 0.4.6.3'
To get the full benefits import LCEssentials
wherever you import UIKit
import LCEssentials
dependencies: [
.package(url: "https://github.com/loverde-co/LCEssentials.git", .upToNextMajor(from: "0.8.7"))
]
You can also add it via XCode SPM editor with URL:
https://github.com/loverde-co/LCEssentials.git
- Background Trhead
LCEssentials.backgroundThread(delay: 0.6, background: {
//Do something im background
}) {
//When finish, update UI
}
- NavigationController with Completion Handler
self.navigationController?.popViewControllerWithHandler(completion: {
//Do some stuff after pop
})
//or more simple
self.navigationController?.popViewControllerWithHandler {
//Do some stuff after pop
}
TEMPORARY DISABLED
- See the custom PickerViewController
- See the custom DatePickerViewController
- See the custom NotificationsController
-
See the custom ImageZoomController
-
See the custom HUDAlert
-
If you whant ONLY LCEssentials without this others controllers above, just add this to your podfile
platform :ios, '15.0'
use_frameworks!
pod 'LCEssentials/Classes'
And then import LCEssentials
wherever you import UIKit
import LCEssentials
Any question or doubts, please send thru email
Daniel Arantes Loverde - [email protected]