Latest 2.4
Homepage https://github.com/kennic/NKFrameLayoutKit
License MIT
Platforms tvos 9.0, ios 8.0
Authors

Version
License
Platform

NKFrameLayout is a super fast and easy to use layout library for iOS and tvOS.

For Swift version, check here: FrameLayoutKit

Example

Grid Example

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

Requirements

Installation

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

pod "NKFrameLayoutKit"

Hello world

let image = UIImage(named: "earth.jpg")

let label = UILabel()
label.text = "Hello World"

let layout = NKDoubleFrameLayout(direction: .horizontal, andViews: [image, label])
layout.spacing = 5
layout.edgeInsets = UIEdgeInsets(top: 5, left: 5, bottom: 5, right: 5)
layout.frame = self.bounds

Hello World

Benchmark

NKFrameLayoutKit is one of the fastest layout libraries.
Benchmark Results

See: Layout libraries benchmark’s project

Todo

  • [x] CocoaPods support
  • [x] Objective-C version
  • [x] Swift version
  • [ ] Examples
  • [ ] Documents

Author

Nam Kennic, [email protected]

License

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

Latest podspec

{
    "name": "NKFrameLayoutKit",
    "version": "2.4",
    "summary": "An auto layout kit",
    "description": "An auto layout kit helps you to layout your UI easier and more effective",
    "homepage": "https://github.com/kennic/NKFrameLayoutKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Nam Kennic": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kennic/NKFrameLayoutKit.git",
        "tag": "2.4"
    },
    "social_media_url": "https://twitter.com/namkennic",
    "platforms": {
        "tvos": "9.0",
        "ios": "8.0"
    },
    "source_files": "NKFrameLayoutKit/Classes/**/*"
}

Pin It on Pinterest

Share This