Latest 1.0.0
Homepage https://github.com/ArchieR7/ArchieExtension
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

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.

Latest podspec

{
    "name": "ArchieExtension",
    "version": "1.0.0",
    "summary": "A extension created by Archie.",
    "description": "A extension created by Archie. This Pod includes UITableView / UICollectionView register method, String logger, NSObject class name, colection safe index, UIView initialize from Nib, UIViewController initialize from Storyboard.",
    "homepage": "https://github.com/ArchieR7/ArchieExtension",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ArchieR7": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ArchieR7/ArchieExtension.git",
        "tag": "1.0.0"
    },
    "social_media_url": "https://twitter.com/ChangArchie",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ArchieExtension/Classes/**/*",
    "frameworks": "UIKit",
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This