LCEssentials 0.8.3

LCEssentials 0.8.3

Loverde Co. 维护。



  • 页面在 CocoaPods.org
  • 作者:Daniel Arantes Loverde


Loverde Co. Swift 脚本精选

这是一个包含 Swift 编写的精选脚本存储库,用于 Loverde Co.,用于节省重写 开发时间和保持其他所有项目的同步。因此,这个 Cocoapods 将随着 Swift 的进步而发展,并会随着每个新版本的发布而改进!

功能

  • 许多实用的脚本扩展
  • 后台线程
  • 使用动画自定义更改 Root View Controller
  • 使用动画 Pop To View Controller
  • 星星评级可设计
  • 许多其他实用的 Designables
  • 使用主要功能创建一个 XCode Proj 示例

安装

CocoaPods

您可以使用 CocoaPods 通过将它添加到您的 Podfile 中来安装 LCEssentials

platform :ios, '12.1'
use_frameworks!

# Swift 5.0
pod 'LCEssentials'

# Swift 4.2
pod 'LCEssentials', '~> 0.4.6.3'

为了获得全部好处,在任何导入 UIKit 的地方导入 LCEssentials

import LCEssentials

Swift 包管理器 (SPM)

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

您也可以通过 XCode SPM 编辑器使用 URL 添加它

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

使用示例

  • 背景线程
LCEssentials.backgroundThread(delay: 0.6, background: {
            //Do something im background
        }) {
            //When finish, update UI
        }
  • 带有完成处理器的NavigationController
self.navigationController?.popViewControllerWithHandler(completion: {
            //Do some stuff after pop
        })
        
//or more simple
self.navigationController?.popViewControllerWithHandler {
    //Do some stuff after pop
}

另一些组件

临时禁用

  • 请参阅自定义 HUDAlert

  • 如果您只想使用 ONLY LCEssentials 而不是上述其他控制器,只需将以下内容添加到您的 podfile

platform :ios, '11.4'
use_frameworks!
pod 'LCEssentials/Classes'

然后,在任何导入 UIKit 的地方导入 LCEssentials

import LCEssentials

0.7.0 版本的作者

如有任何问题或疑虑,请通过电子邮件发送

Daniel Arantes Loverde - [email protected]

Alt text Alt text Alt text Alt text Alt text