A CocoaPods repository of extension created by Archie.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ArchieExtension
Example
.gitignore
.travis.yml
ArchieExtension.podspec
LICENSE
README.md
_Pods.xcodeproj

README.md

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, Archie@Archie.tw

License

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