LCEssentialsWatch 0.0.3

LCEssentialsWatch 0.0.3

Loverde Co. 维护。



  • 作者:
  • Daniel Arantes Loverde


Loverde Co. 快捷脚本

这是一个 Swift 编写的快速脚本仓库,用于 Loverde Co.,可用于节省重写时间和在所有其他项目中保持一致性。因此,这个 Cocoapods 将随着 Swift 的更新而发展,并将随着每个版本的发布而改进!

功能

  • 许多有用的脚本扩展
  • 后台线程
  • 自定义更改根视图控制器并进行动画处理
  • 带有动画的弹出视图控制器
  • 可设计之星级评分
  • 许多其他有用的可设计组件
  • 带有所有功能的 Xcode Proj 示例

安装

CocoaPods

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

platform :ios, '11.4'
use_frameworks!

# Swift 5.0
pod 'LCEssentials'

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

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

import LCEssentials

Swift Package Manager (SPM)

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

您也可以通过 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
}
platform :ios, '11.4'
use_frameworks!
pod 'LCEssentials/Classes'

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

import LCEssentials

V1.0作者

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

Daniel Arantes Loverde - [email protected]

Alt text Alt text Alt text Alt text Alt text