Aletheia 1.0.9

Aletheia 1.0.9

twstephenstephen chen 维护。



Aletheia 1.0.9

  • 作者
  • chen stephen

Aletheia

目标是节省您的时间。此项目包含许多代码,可帮助您解决常见问题,如获取屏幕的边界、大小、宽度和从 .plist 文件中获取值。除此之外,此项目是一个伞形框架。目前,Log 默认包含在内,但您也可以用 AlamofireKingfisher 来克隆此项目。

[![CI 状态](https://img.shields.io/travis/chen stephen/Aletheia.svg?style=flat)](https://travis-ci.org/chen stephen/Aletheia) 版本 许可 平台

示例

要运行示例项目,首先克隆仓库,导航到 Example 文件夹,然后从 Example 目录中运行 pod install

要求

安装

Aletheia可通过CocoaPods获取。要安装它,只需将以下行添加到您的Podfile中

pod 'Aletheia'

使用AlamofireKingfisher进行安装

pod 'Aletheia/Network'

如何使用

导入

import Aletheia

命名空间

Aletheia使用al作为命名空间来封装函数。

对于字符串

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 )

对于日期

let date = Date().al.toString() /// 2020-02-13 14:10:50

对于屏幕

ALScreen.width
ALScreen.height

对于系统

ALSystems.getAppVersion

ALSystems.getAppBundleID

作者

陈斯缇芬,[email protected]

许可证

Aletheia遵循MIT许可证。有关更多信息,请参阅LICENSE文件。