JFJExtension 1.0.6

JFJExtension 1.0.6

Maintained by Jia.



  • By
  • skykywind

JFJExtension

JFJExtension complements the UIKit and Foundation frameworks, simplifies system method calls and helps us develop projects faster. At the same time, some extensions will make the Swift code cleaner and beautiful.

CI Status Version License Platform

Example

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

Cases

创建UIView及其子类

_ = UIView()
    .addTo(view)
    .config {
        $0.x = 100
        $0.y = 100
        $0.size = CGSize(width: 100, height: 100)
        $0.backgroundColor = UIColor.red
    }
    
 _ = UILabel()
     .addTo(view)
     .config {
        $0.text = "Hello JFJExtion"
        $0.font = UIFont.systemFont(ofSize: 14)
        $0.textColor = .red
     } 
     .layout {
        $0.top.equalToSuperview().offset(300)
        $0.centerX.equalToSuperview()
     }

Requirements

Installation

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

pod 'JFJExtension'

Author

skykywind, [email protected]

License

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