bcd358cb091004dfffd72ea00f51b848eb85c28e
- request(): drop params: Any? and jsonEncoding:; add body: (any HTTPBody)? and pathParams: [String: String] - remove legacy magic-"file" multipart branch (-> upload() in T6) and the now-unused mimeTypeForPath - decompose into makeURL / buildRequest / attach / send / classify / decodeResponse / friendlyError (each < 30 lines) - headers now merge over defaults (custom wins per key) instead of replacing - fix unbounded persistConnection recursion on permanent 4xx: cap at maxPersistRetries (3) - APIRequestTests: 7 cases over StubURLProtocol

Loverde Co. Essentials Swift Scripts
This is a repository of essential scripts written in Swift for Loverde Co. used to save time on re-writing and keeping it on all other projects. So this Cocoapods will evolve with Swift and will improve with every release!
Requirements
- iOS 15.* or newer, Swift 5.* or newer.
Features
- Many usefull scripts extensions
Installation
Swift Package Manager (SPM)
dependencies: [
.package(url: "https://git.loverde.com.br/Loverde-Company-LTDA/LCEssentials", .upToNextMajor(from: "1.0.0"))
]
You can also add it via XCode SPM editor with URL:
https://git.loverde.com.br/Loverde-Company-LTDA/LCEssentials
Usage example
- Background Trhead
LCEssentials.backgroundThread(delay: 0.6, background: {
//Do something im background
}) {
//When finish, update UI
}
- NavigationController with Completion Handler
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
import LCEssentials
Any question or doubts, please send thru email
Daniel Arantes Loverde - daniel@loverde.com.br
Autor: Daniel Arantes Loverde
Description
v2.0.0
Latest
Languages
Swift
100%
