Latest 1.0.0
Homepage https://github.com/morishin/UIViewBorders
License MIT Copyright (c) 2017 Shintaro Morikawa
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Platforms ios 9.0
Authors

Swift version
CocoaPods compatible
Carthage compatible

UIView extension for drawing borders

Usage

Example

let view = UIView(frame: CGRect(x: 200, y: 225, width: 100, height: 50))
view.addBorderViews(positions: [.top, .left], color: .red, width: 3)

2017-12-03 1 13 44

Installation

Carthage

Cartfile

github "morishin/UIViewBorders"

CocoaPods

Podfile

pod 'UIViewBorders'

LICENSE

MIT

Latest podspec

{
    "name": "UIViewBorders",
    "version": "1.0.0",
    "summary": "UIView extension for drawing borders",
    "homepage": "https://github.com/morishin/UIViewBorders",
    "authors": {
        "morishin": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/morishin/UIViewBorders.git",
        "tag": "1.0.0"
    },
    "source_files": "Sources/**/*.{swift,h,m}",
    "license": {
        "type": "MIT",
        "text": "      Copyright (c) 2017 Shintaro Morikawan      Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:n      The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.n      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.n"
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This