Compare commits
1 Commits
1.0.0
...
feature/do
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
27b6b45ee9 |
3195
LCEssentials_DOCUMENTATION.md
Normal file
3195
LCEssentials_DOCUMENTATION.md
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,15 +0,0 @@
|
||||
{
|
||||
"originHash" : "ef48d023f19d8a2c259992041cec23f906eb03f03bebe9fca0d61ede6bf8de57",
|
||||
"pins" : [
|
||||
{
|
||||
"identity" : "lcecryptokitbinary",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "http://7b47f7b439df1048cbf2fae1c46113df178e0349@git.loverde.com.br:3000/git/LCECryptoKitBinary.git",
|
||||
"state" : {
|
||||
"revision" : "2e7850fdb14cacf6bf2eb160f64c3df84cf5b1c4",
|
||||
"version" : "1.1.0"
|
||||
}
|
||||
}
|
||||
],
|
||||
"version" : 3
|
||||
}
|
||||
@@ -1,33 +1,16 @@
|
||||
// swift-tools-version: 6.0
|
||||
import PackageDescription
|
||||
import Foundation
|
||||
|
||||
let isLocalDevelopment = FileManager.default.fileExists(atPath: "../LCECryptoKit/PrivateLib/LCECryptoKitBinary")
|
||||
|
||||
let package = Package(
|
||||
name: "LCEssentials",
|
||||
platforms: [
|
||||
.iOS(.v13),
|
||||
.macOS(.v10_15),
|
||||
.tvOS(.v13),
|
||||
.watchOS(.v6)
|
||||
],
|
||||
products: [
|
||||
.library(
|
||||
name: "LCEssentials",
|
||||
targets: ["LCEssentials"]),
|
||||
],
|
||||
dependencies: [
|
||||
.package(
|
||||
url: isLocalDevelopment ?
|
||||
"../LCECryptoKit/PrivateLib/LCECryptoKitBinary" :
|
||||
"http://7b47f7b439df1048cbf2fae1c46113df178e0349@git.loverde.com.br:3000/git/LCECryptoKitBinary.git",
|
||||
exact: "1.1.0"
|
||||
)
|
||||
],
|
||||
targets: [
|
||||
.target(
|
||||
name: "LCEssentials",
|
||||
dependencies: [.product(name: "LCECryptoKit", package: "lcecryptokitbinary")]),
|
||||
name: "LCEssentials"),
|
||||
|
||||
]
|
||||
)
|
||||
|
||||
31
README.md
31
README.md
@@ -28,36 +28,7 @@ http://git.loverde.com.br:3000/git/LCEssentials.git
|
||||
```
|
||||
|
||||
## Usage example
|
||||
|
||||
* Background Trhead
|
||||
|
||||
```swift
|
||||
LCEssentials.backgroundThread(delay: 0.6, background: {
|
||||
//Do something im background
|
||||
}) {
|
||||
//When finish, update UI
|
||||
}
|
||||
```
|
||||
* NavigationController with Completion Handler
|
||||
|
||||
```swift
|
||||
self.navigationController?.popViewControllerWithHandler(completion: {
|
||||
//Do some stuff after pop
|
||||
})
|
||||
|
||||
//or more simple
|
||||
self.navigationController?.popViewControllerWithHandler {
|
||||
//Do some stuff after pop
|
||||
}
|
||||
```
|
||||
## Another components
|
||||
> LCESnackBarView - **great way to send feedback to user**
|
||||
|
||||
And then import `LCEssentials ` wherever you import UIKit or SwiftUI
|
||||
|
||||
``` swift
|
||||
import LCEssentials
|
||||
```
|
||||
[Read full documentation](LCEssentials_DOCUMENTATION.md)
|
||||
|
||||
Author:
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user