Latest 3.0.0
Homepage https://github.com/k3zi/KZ
License MIT
Platforms ios 10.0, requires ARC
Dependencies PureLayout, Reusable
Authors

KZ Swift CocoaPods Build Status

A base framework for iOS projects


Install with CocoaPods

pod 'KZ', '~> 1.3'

Classes Notes

KZViewController
  • A base for your controllers
  • Set any constraints in updateViewConstraints
  • Override fetchData to handle any network requests (Note: this is called automatically and on 15 second intervals)
  • UITableViewDelegate & UITableViewDataSource
    • Override tableViewCellClass to change the class of a cell
    • Override tableViewCellData to return the array of data to use for a section
    • Override tableViewNoDataText to change the text displayed when there is no data
    • This class already handles setting the height & content of cells

KZTableViewController
  • Inherits from KZViewController
  • Can optionally create a table
  • Has an array of Any initialized beforehand: self.items
  • The tableView is created by default and set to fill the whole view

KZTableViewCell
  • Override init(style:reuseIdentifier:) to add any buttons, images, labels, etc…
  • Override setupConstraints to handle laying out the cell’s contents with autolayout
  • Override fillInCellData to handle the data for the cell. The model property can be cast to the class you are expecting

KZScrollViewController
  • Inherits from KZViewController
  • Has a contentView embeded in a scrollView that fills the sceen
  • Add any content in viewDidLoad to the contentView
  • Override setupConstraints to layout the viewinside the scroll view

KZIntrinsicTableView
  • A tableView whose height is the height of it’s content

KZIntrinsicCollectionView
  • A collectionView whose height is the height of it’s content

License

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

Author

Kesi Maduka
http://kez.io
[email protected]

Latest podspec

{
    "name": "KZ",
    "version": "3.0.0",
    "summary": "Framework base for iOS projects",
    "homepage": "https://github.com/k3zi/KZ",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Kesi Maduka": "[email protected]"
    },
    "social_media_url": "https://twitter.com/k3zi_",
    "platforms": {
        "ios": "10.0"
    },
    "swift_version": "4.2",
    "requires_arc": true,
    "source": {
        "git": "https://github.com/k3zi/KZ.git",
        "tag": "3.0.0",
        "submodules": true
    },
    "source_files": "KZ/**/*.{swift}",
    "dependencies": {
        "PureLayout": [],
        "Reusable": []
    }
}

Pin It on Pinterest

Share This