ricardopsantos / RJSLibUF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RJSLibUF

Guys love tools, this is my Swift toolbox (UIKit and Foundation )

Swift 5.3 Swift 5.3 Platform
Carthage Compatible SPM Twitter

Library Organization

There are 5 frameworks separated by business

Preview

Preview

RJSLibUFBase

RJSLibUFBase contains things like:

  • Extensions
  • Reachability manager
  • App and device info utilities
  • Generic utilities
    • Chronometer
    • App Logger
    • Data types conversion tools
  • Util classes
    • SynchronizedArray
  • Others

RJSLibUFStorage

RJSLibUFStorage includes storage helpers for:

  • File handling
  • CoreData
  • Keychain
  • NSUserDefaults utils
  • Caching
    • Hot cache using NSCache
    • Cold cache using CoreData

RJSLibUFBaseVIP

VIP utils


RJSLibUFAppThemes

Multiple design languages and color schemes.


RJSLibUFDesignables

Util UI components/designables.


RJSLibUFNetworking

WEB API clients.


Install

Install via Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate RJPSLibUB into your Xcode project using Carthage, specify it in your Cartfile:

github "ricardopsantos/RJSLibUF" "1.2.4"

or for beta

github "ricardopsantos/RJSLibUF" "master"

Swift Package Manager

Install using SPM On Xcode

Add the following to your Package.swift file's dependencies:

.package(url: "https://github.com/ricardopsantos/RJSLibUF.git", from: "1.2.4")

And then import wherever needed

Preview


Install using SPM on XcodeGen

packages:
  RJSLibUF:
    url: https://github.com/ricardopsantos/RJSLibUF
    branch: master
    #minVersion: 1.0.0, maxVersion: 2.0.0
    
targets:
  YourAppTargetName:
    type: application
    platform: iOS
    deploymentTarget: "13.0"
    sources:
       - path: ../YourAppSourcePath
    dependencies:
      - package: RJSLibUF
        product: RJSLibUFBase
        product: RJSLibUFStorage
        product: RJSLibUFNetworking
        product: RJSLibUFALayouts
        product: RJSLibUFAppThemes

Install dependency on other SPM packages

  • Add the package .package(name: "rjps-lib-uf", url: "https://github.com/ricardopsantos/RJSLibUF", from: "1.2.4") (line 28)
  • Declare the dependecies (line 14 and 19)
  • Add the dependency

Preview


SPM Generic Usage

Preview

3 party code

https://github.com/roberthein/TinyConstraints

About


Languages

Language:Swift 99.5%Language:Shell 0.5%