Aletheia
The goal is to save time for your day. This project contains a bunch of code to help your common problems like get Screen bounds, size, width and value from .plist files. Beside that, this project is a umbrella framework. For now Log is include by default, but you also clone this project with Alamofire and Kingfisher.
[](https://travis-ci.org/chen stephen/Aletheia)
Example
To run the example project, clone the repo, navigate to Example
folder and run pod install
from the Example directory first.
Requirements
Installation
Aletheia is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'Aletheia'
Installation with Alamofire and Kingfisher
pod 'Aletheia/Network'
How to use
Import
import Aletheia
Namespace
Aletheia using al
as a namespace to encapsulate functions.
For string
let aDate = "2019-02-13"
aDate.al.toDateStringFormat("yyyy", oldFormat: "yyyy-MM-dd") /// 2019
let aURL = "https://www.example.com"
aURL.al.toURL() /// Optional(https://www.example.com) ( URL Type )
For date
let date = Date().al.toString() /// 2020-02-13 14:10:50
For Screen
ALScreen.width
ALScreen.height
For System
ALSystems.getAppVersion
ALSystems.getAppBundleID
Author
chen stephen, [email protected]
License
Aletheia is available under the MIT license. See the LICENSE file for more info.