Latest 3.0.0
License MIT
Platforms ios 10.0, requires ARC
Dependencies PureLayout, Reusable

KZ Swift CocoaPods Build Status

A base framework for iOS projects

Install with CocoaPods

pod 'KZ', '~> 1.3'

Classes Notes

  • 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

  • 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

  • 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

  • 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

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

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


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


Kesi Maduka
[email protected]

Latest podspec

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

Pin It on Pinterest

Share This