All Projects → pres → PREBorderView

pres / PREBorderView

Licence: other
A very simple Objective-C UIView category for specifying single-sided borders.

Programming Languages

objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to PREBorderView

LSAdditions
The Category of Commonly used controls and you can create a control quickly(Object, Control ...)
Stars: ✭ 15 (-16.67%)
Mutual labels:  uiview, category
TataruHelper
Tataru Helper - application for translation of in-game texts in Japan MMORPG - Final Fantasy XIV. The texts are understood as MSQ, cutscenes, quests, NPC replicas, etc.
Stars: ✭ 255 (+1316.67%)
Mutual labels:  helper
vkhelpers
Vulkan c helper library
Stars: ✭ 25 (+38.89%)
Mutual labels:  helper
klas-helper
🎠 광운대학교 KLAS 사이트에 편리한 기능을 추가할 수 있는 유저 스크립트
Stars: ✭ 60 (+233.33%)
Mutual labels:  helper
GoneVisible
GoneVisible is a UIView extension that uses AutoLayout to add "gone" state like Android.
Stars: ✭ 27 (+50%)
Mutual labels:  uiview
vault-token-helper
@hashicorp Vault Token Helper for macOS, Linux and Windows with support for secure token storage and multiple Vault servers 🔐
Stars: ✭ 74 (+311.11%)
Mutual labels:  helper
RITLLayerBorder
【Deprecated】为UIView追加选择指定边的border, 适配autoLayout
Stars: ✭ 22 (+22.22%)
Mutual labels:  border
permissionUtil
Simple permission helper
Stars: ✭ 64 (+255.56%)
Mutual labels:  helper
craft-helper
A collection of useful Craft CMS macros and components.
Stars: ✭ 23 (+27.78%)
Mutual labels:  helper
epic-kitchens-55-lib
☕ EPIC-KITCHENS-55 dataset python library
Stars: ✭ 28 (+55.56%)
Mutual labels:  helper
Sequents
A simple continuous animation library for iOS UI.
Stars: ✭ 31 (+72.22%)
Mutual labels:  uiview
raise if
one liner `raise Exception if condition` for Python
Stars: ✭ 15 (-16.67%)
Mutual labels:  helper
AnalogClock
Animated analog for iOS clock written in Swift
Stars: ✭ 24 (+33.33%)
Mutual labels:  uiview
phoenix html simplified helpers
Some helpers for phoenix html( truncate, time_ago_in_words, number_with_delimiter, url_for, current_page? )
Stars: ✭ 29 (+61.11%)
Mutual labels:  helper
BlurKit
A lightweight library that can easily blur the view.
Stars: ✭ 17 (-5.56%)
Mutual labels:  uiview
Shades
Easily add drop shadows, borders, and round corners to a UIView.
Stars: ✭ 14 (-22.22%)
Mutual labels:  border
go-http-client
An enhanced http client for Golang
Stars: ✭ 48 (+166.67%)
Mutual labels:  helper
batteries
Reusable dependencies for games made with lua (especially with love)
Stars: ✭ 194 (+977.78%)
Mutual labels:  helper
cfw-easy-utils
An in-depth library to assist with common tasks with CF Workers. Includes utils for responses, cookies, and more!
Stars: ✭ 52 (+188.89%)
Mutual labels:  helper
NotchToolkit
Use the iPhone X notch in creative ways 👩‍🎨👨‍🎨.
Stars: ✭ 55 (+205.56%)
Mutual labels:  uiview

PREBorderView

A very simple Objective-C UIView category for specifying single-sided borders.

sample


Installation

Using CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like PREBorderView in your projects.

Podfile

pod 'PREBorderView', "~> 3.3"

Manual

Otherwise just include UIView+PREBorderView.{h,m} in your project.


Usage

Add a border to a view

[view addBorderWithColor:UIColor.blackColor andWidth:2 atPosition:PREBorderPositionRight];

Remove a border

[view removeBorderAtPosition:PREBorderPositionRight];

defaultBorderColor

For convenience of usage you are able to specify a defaultBorderColor.

  • addBorderWithWidth:atPosition:
  • addRetinaPixelBorderAtPosition:

adds the border using defaultBorderColor

Respond to size changes

To easily update all borders to size changes of views

  • Use layoutBorders to update borders of a view.
  • Use layoutSubviewBorders to update borders of a view, as well as all borders of subviews.

To update a controller's view to auto layout changes call layoutSubviewBorders in viewDidLayoutSubviews.

Full Documentation


Communication

  • If you found a bug, and can provide steps to reliably reproduce it, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

License

PREBorderView is released under the MIT license. See LICENSE for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].