Daniel Arantes Loverde 2cd52d3d12 [docs] Split reference docs into Extensions / SwiftUI / UIKit guides
Full per-symbol reference for every public extension, SwiftUI component, and
UIKit-era helper, as collapsible sections. README gets a Documentation table
linking all four guides; footer trimmed to the resume link. Docs only - no
code changes.
2026-08-29 21:27:49 -03:00
2026-05-24 10:26:25 -03:00
2026-05-24 10:26:25 -03:00
2025-03-23 00:27:49 -03:00


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
  • API — typed async networking + multipart uploads
  • SwiftUI components (LCENavigationView) and UIKit-era helpers

Documentation

Guide Covers
API.md API networking — requests, multipart uploads, client certificates, error handling, and why it beats a hand-rolled URLSession
Extensions.md Foundation / value-type / string / collection / numeric / date / crypto extensions and the LCEssentials namespace
SwiftUI.md SwiftUI components and View helpers
UIKit.md Programmatic layout & constraints, view/control extensions, navigation, tables, and drop-in components

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
}
  • Networking with API
struct User: Decodable, Sendable { let id: Int; let name: String }

let user: User = try await API.shared.request(
    url: "https://api.example.com/users/{id}",
    method: .get,
    pathParams: ["id": "42"]
)

Full guide — requests, uploads, client certificates, error handling, and why it beats a hand-rolled URLSession: Documentation/API.md

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

Alt text

Autor: Daniel Arantes Loverde

Description
Swift and SwiftUI algorithms helpers
Readme 695 KiB
v2.0.0 Latest
2026-08-29 19:01:22 -03:00
Languages
Swift 100%