CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

Aletheia 1.0.9

Aletheia 1.0.9

Maintained by twstephen, stephen chen.



Aletheia 1.0.9

  • By
  • chen stephen

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.

[![CI Status](https://img.shields.io/travis/chen stephen/Aletheia.svg?style=flat)](https://travis-ci.org/chen stephen/Aletheia) Version License Platform

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.