Latest 0.1.0
Homepage https://github.com/Haidora/HaidoraNibDesignable
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

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

方式一

//1.引入库
import HaidoraNibDesignable
@IBDesignable
//2.实现HaidoraNibDesignable
class DesignableView: UIView,HaidoraNibDesignable {

    override init(frame: CGRect) {
        super.init(frame: frame)
        //添加nib文件到当前view
        self.setupNib()
    }

    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        //添加nib文件到当前view
        self.setupNib()
    }
}

方式二

import HaidoraNibDesignable
//继承HaidoraNibDesignableView
class InputView: HaidoraNibDesignableView {

}

Requirements

  • xcode8+
  • Swift3.0
  • iOS8+

Installation

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

    pod "HaidoraNibDesignable"

Inspired by these projects:

Author

mrdaios, [email protected]

License

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

Latest podspec

{
    "name": "HaidoraNibDesignable",
    "version": "0.1.0",
    "summary": "IBDesignable on your nib-based views.",
    "description": "IBDesignable on your nib-based views.",
    "homepage": "https://github.com/Haidora/HaidoraNibDesignable",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "mrdaios": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Haidora/HaidoraNibDesignable.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "HaidoraNibDesignable/Classes/**/*"
}

Pin It on Pinterest

Share This