Compare commits
6 Commits
feature/do
...
1.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0eb4f355df | ||
|
|
3e3e181b36 | ||
|
|
175816dff8 | ||
|
|
daae48817a | ||
|
|
241d69ecc1 | ||
|
|
f4fade0442 |
File diff suppressed because it is too large
Load Diff
15
Package.resolved
Normal file
15
Package.resolved
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"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,16 +1,33 @@
|
|||||||
// 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,7 +28,36 @@ 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