Latest 1.0.0
Homepage https://github.com/sy5075391/XKCornerRadius
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

CI Status
Version
License
Platform

Example

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

   self.view.backgroundColor = [UIColor whiteColor];
    _frameView = [[UILabel alloc] init];
    _frameView.backgroundColor = [UIColor redColor];
    _frameView.text = @"frame";
    _frameView.frame = CGRectMake(20, 100, 200, 100);

    _frameView.xk_openClip = YES;
    _frameView.xk_radius = 20;
    _frameView.xk_clipType = XKCornerClipTypeTopRight|XKCornerClipTypeBottomLeft;

    [self.view addSubview:_frameView];

    _masonryView = [[UILabel alloc] init];
    _masonryView.text = @"autoLayout";
    _masonryView.xk_openClip = YES;
    _masonryView.xk_radius = 20;
    _masonryView.backgroundColor = [UIColor orangeColor];
    _masonryView.xk_clipType = XKCornerClipTypeTopRight|XKCornerClipTypeTopLeft;

    [self.view addSubview:_masonryView];

    [_masonryView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.frameView.mas_bottom).offset(40);
        make.left.equalTo(self.frameView);
        make.size.mas_equalTo(CGSizeMake(100, 100));
    }];

Simulator Screen Shot - iPhone X - 2018-12-29 at 17.18.47.png

Requirements

Installation

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

pod 'XKCornerRadius'

Author

Jamesholy, [email protected],https://www.jianshu.com/u/2df38653a8d4

License

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

Latest podspec

{
    "name": "XKCornerRadius",
    "version": "1.0.0",
    "summary": "tool for cornerRadius.",
    "description": "TODO: u9ad8u6027u80fdu5706u89d2u5de5u5177u3002u652fu6301frameuff0cAutoLayoutu5e03u5c40",
    "homepage": "https://github.com/sy5075391/XKCornerRadius",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "sy5075391": "[email protected]"
    },
    "source": {
        "git": "https://github.com/sy5075391/XKCornerRadius.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "XKCornerRadius/Classes/**/*",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This