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

ArchieExtension 1.0.0

ArchieExtension 1.0.0

Maintained by Archie.



ArchieExtension

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Swift 4.2
  • Xcode 10

Installation

ArchieExtension is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'ArchieExtension'

Usage

UITableView / UICollectionView

In UITableView and UICollectionView, it provides new register methods.

Collection

In Collection, it provides safe index method, if index bigger than endIndex and smaller than startIndex, will retrun nil.

// collection.count = 9
collection[safe: -1]
// return nil
collcetion[safe: 10]
// return nil

ClassName

UIView.className
// return "UIView"

ALog - Debug, Warn, Info, Error

// in Archie.Swift
func Test() {
    ALogDebug("Test")
}
// console log: 📒 Archie.swift[1](Test()): Test

Author

Archie, [email protected]

License

ArchieExtension is available under the MIT license. See the LICENSE file for more info.