Skip to content

snyuryev/Inspectable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Inspectable

Sample of IBInspectable and IBDesignable.

With XCode 6 it is possible to build custom interface and design without restarting app.

Alt text

  1. CustomTextField (custom UITextField)

    • clearButtonImage - setup image for cleat button
    • allCornersRadius - setup corners radius, all corners
    • topCornersRadius - setup corners radius, top corners
    • bottomCornersRadius - setup corners radius, bottom corners
    • placeholderColor - setup color of placeholder
  2. CustomView (custom UIView)

    • cornerRadius - setup corner radius
    • borderWidth - setup border width
    • borderColor - setup border color
  3. extension UIView (applied for all UIViews - should be incomment first)

    • cornerRadius - setup corner radius
    • borderWidth - setup border width
    • borderColor - setup border color

According http://nshipster.com/ and the article about IBInspectable and IBDesignable. More info - http://nshipster.com/ibinspectable-ibdesignable/

About

Sample of IBInspectable and IBDesignable.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages