fadizant / Themeable

Easy way to switch between themes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Themeable

Easy way to switch between themes using swizzle to catch app colors and return the selected theme color.

Setup

How to use

  • call UIColor.swizzleInitImplementation with themes of your app in the begining.

  • to add colors for your theme, you have to use this formate colorName_themeName colorName is the name of color themeName is theme name

  • call UIColor.switchToTheme with theme name when you want to switch theme. if you want to return to default theme set theme name as empty UIColor.switchToTheme("")

  • to see the effect of theme switch you have to reset your window

About

Easy way to switch between themes


Languages

Language:Swift 100.0%