Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
Radim Halfar edited this page Mar 13, 2018 · 8 revisions

alt text Artwork: Josef Čapek - 7. Povídání o pejskovi a kočičce (7/43)

Styles

Styles is a powerful framework which helps you to centralize the styling of your app. If you ever experienced difficulties by changing overall app background color, modifying general layout setup, setting layer properties, borders or even applying various effects to texts, here you are. Try styles and never ever let design changes to be your nightmare.

Features

  • declarative: You describe the style, framework will do the rest
  • type-safe: Type system will help you describe your style
  • plays nice with UIAppearance: In fact its designed for it.
  • usable as settable property: Not only works as UIAppearance proxy, but also as settable property
  • supports UIControl states and UITextField editing: You're gonna ❤︎ it.
  • saves you from the NSAttributedString1: Just work with Strings.
  • text, color and layer properties: Custom line height, letter spacing, corners? Me gusta.
  • supports Styles updating: Design base style for you app and update it on the fly as needed.

1: In some cases.

Requirements

  • iOS 10.0+
  • Xcode 9.2+
  • Swift 4.1+

Usage guides

Clone this wiki locally