Skip to content

byvapps/ByvStyles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ByvStyles

CI Status Version License Platform

With this library styles and colors can be defined and used after dynamically in code. Support exported contet from Zeplin

Example

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

Requeriments

Colors.json and Styles.js. Can be exported using zeplin ByvStyles extension

Usage

Colors

self.view.bgNamedColor("yellowText")

Styles

label.styledText("<titleBoldWhite>Añade tu vehículo</titleBoldWhite>")

label2.styledText("<subtitleMessages>Hay una reparación asociada a este mantenimiento pendiente de valorar.</subtitleMessages> <subtitleMessagesBold>Obtendrás un 2% de descuento</subtitleMessagesBold> <subtitleMessages>de la factura en € bigs.</subtitleMessages>")

Installation

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

pod 'ByvStyles'

Interface Builder

To be able to set styles from Interface Builder directly you can use ByvStylesIB library

Author

adrianByv, [email protected]

License

ByvStyles is available under the MIT license. See the LICENSE file for more info.