Latest 0.2.0
Homepage https://github.com/kuyu12/SwiftXib
License MIT
Platforms ios 10.0
Authors

An easy Xib loader:

platform
pod
swift

Installation

CocoaPods

You can use CocoaPods to install SwiftXib by adding it to your Podfile:

platform :ios, '8.0'
use_frameworks!
pod 'SwiftXib'

In your application, simply import the library

import SwiftXib

Support Xibs:

  • [x] UIView xib
  • [x] UITableView xib

How to use:

  1. Create your Xib view.
  2. Create you Xib class and extend SwiftXibView class.
  3. Override nibName and set you xib view name.
  4. Connect Xib File’s Owner to your class.

Example

This example will simply load xib view with SwiftXibView


Class MyCustomView : SwiftXibView {

  // override nibName and return your nib name. ('nibName.xib)
  override var nibName: String {return "nibName"}

  // setUI is call immediately after the view setUp.
  override func setUI() { 
    // initialized your view
  }
}

alt text

For more info check ours Wiki.

Contributors

License

Distributed under the MIT license. See LICENSE for more information.

Latest podspec

{
    "name": "SwiftXib",
    "version": "0.2.0",
    "summary": "Xib Loader - very easy use xib loader",
    "description": "An Xib loader, easy and fast. All you need is to extend the SwiftXib class and you done.",
    "homepage": "https://github.com/kuyu12/SwiftXib",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Yair Hadad": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kuyu12/SwiftXib.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "SwiftXib/SwiftXib/*"
}

Pin It on Pinterest

Share This