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
|
// swift-tools-version: 6.0
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
import Foundation
|
|
||||||
|
|
||||||
let isLocalDevelopment = FileManager.default.fileExists(atPath: "../LCECryptoKit/PrivateLib/LCECryptoKitBinary")
|
|
||||||
|
|
||||||
let package = Package(
|
let package = Package(
|
||||||
name: "LCEssentials",
|
name: "LCEssentials",
|
||||||
platforms: [
|
|
||||||
.iOS(.v13),
|
|
||||||
.macOS(.v10_15),
|
|
||||||
.tvOS(.v13),
|
|
||||||
.watchOS(.v6)
|
|
||||||
],
|
|
||||||
products: [
|
products: [
|
||||||
.library(
|
.library(
|
||||||
name: "LCEssentials",
|
name: "LCEssentials",
|
||||||
targets: ["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: [
|
targets: [
|
||||||
.target(
|
.target(
|
||||||
name: "LCEssentials",
|
name: "LCEssentials"),
|
||||||
dependencies: [.product(name: "LCECryptoKit", package: "lcecryptokitbinary")]),
|
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|||||||
31
README.md
31
README.md
@@ -28,36 +28,7 @@ http://git.loverde.com.br:3000/git/LCEssentials.git
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Usage example
|
## Usage example
|
||||||
|
[Read full documentation](LCEssentials_DOCUMENTATION.md)
|
||||||
* 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
|
|
||||||
```
|
|
||||||
|
|
||||||
Author:
|
Author:
|
||||||
----
|
----
|
||||||
|
|||||||
Reference in New Issue
Block a user