Guys love tools, this is my Swift toolbox (UIKit and Foundation )
There are 5 frameworks separated by business
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 includes storage helpers for:
- File handling
- CoreData
- Keychain
- NSUserDefaults utils
- Caching
- Hot cache using NSCache
- Cold cache using CoreData
VIP utils
Multiple design languages and color schemes.
Util UI components/designables.
WEB API clients.
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"
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
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
SPM Generic Usage