Bordered view with support for inset borders. BNBorderedView allows for the creation of custom size and color borders and insets on your UIView. Much in the same way you would be able to define borders on an
div with CSS. With BNBorderedView you can define each border to have differing properties.
This was a class I used in a project a long time ago that I wanted to open source rather than sit around.
BNBorderedView.m to your projects.
pod 'BNBorderedView', :git => 'https://github.com/brentnycum/BNBorderedView.git'
Using BNBorderedView is simple. Simply initialize like any normal
BNBorderedView *borderedView = [[BNBorderedView alloc] initWithFrame:CGRect(10, 10, 60, 60)];
In BNBorderedView you can set everything via properties.
borderedView.topBorderColor = [UIColor blueColor];
setBorderColor:(UIColor *)colorTo set all border colors.
setBorderSize:(CGSize)sizeTo set all border sizes.
setInsetColor:(UIColor *)colorTo set all inset colors.
setInsetSize:(CGSize)sizeTo set all inset sizes.