[go: up one dir, main page]

Skip to content

Convenient variable setter extension for UIControls

License

Notifications You must be signed in to change notification settings

matthewlui/soset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

soset

Convenient variable setter extension for UIControls

No more guessing and messy ui setting logic

What it does is so simple and elagant yet extendable.

button.set(.titleColor(.normal(.white)))

// or

button.set([
  .titleColor(.normal(.white)),
  .backgroundColor(.normal(.black)),
  .titleColor(.focused(.darkGrey)),
  .backgroundColor(.focused(.white))
  ])