Skip to content

This is a repository of essential algorithm 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!

License

loverde-co/LCEssentials

Repository files navigation


Loverde Co. Essentials Swift Scripts

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!

Features

  • 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

Installation

CocoaPods

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

Swift Package Manager (SPM)

dependencies: [
    .package(url: "https://github.com/loverde-co/LCEssentials.git", .upToNextMajor(from: "0.5.8"))
]

You can also add it via XCode SPM editor with URL:

https://github.com/loverde-co/LCEssentials.git

Usage example

  • 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
}

Another components

TEMPORARY DISABLED

  • 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

Author of v0.8.0

Any question or doubts, please send thru email

Daniel Arantes Loverde - daniel@loverde.com.br

Alt text Alt text Alt text Alt text Alt text

About

This is a repository of essential algorithm 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!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published