Latest 1.0.1
License MIT
Platforms ios 8.0


LDOGradientView demo


The borders…

Interface Builder Support

All properties can be edited in Interface Builder.

While LDOHairlineBorderView uses IBInspectable, it does not support IB_DESIGNABLE, because it seems that Interface Builder still struggles rendering those views properly.

Apparently even many IBInspectable properties can cause Interface Builder performance issues. To mitigate such problems, there’s also LDOHairlineBorderViewLite with only the minimum of inspectable properties. Try to use it whenever possible, if Interface Builder starts slogging.


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


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

pod 'LDOHairlineBorderView'


Raschke & Ludwig GbR,


LDOHairlineBorderView is available under the MIT license.
See the LICENSE file for more information.

Latest podspec

    "name": "LDOHairlineBorderView",
    "version": "1.0.1",
    "summary": "A view with 1px (NOT pt!) configurable borders and Interface Builder support.",
    "description": "Like a UITableViewCell separator, but more flexible.nnIndividually configurable borders can be added to all four sides of the view.nThe pixel aligned borders are as thin as possible and always 1px wide, on retina and non-retina devices.nnAll properties can also be edited in Interface Builder.",
    "homepage": "",
    "screenshots": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Julian Raschke und Sebastian Ludwig GbR": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.0.1"
    "platforms": {
        "ios": "8.0"
    "source_files": "LDOHairlineBorderView/Classes/**/*"

Pin It on Pinterest

Share This