Elton Garcia Elton Garcia - 3 months ago 18
iOS Question

Multiple iOS targets with varying storyboard styles

I'm developing a native iOS app for multiple customers, we are using multiple targets to each different customer. Almost all storyboards will be reused because the app is almost the same for each customer.

The problem is, we need customize the storyboards with the colors and images of each customer and we don't want to replicate the storyboards. So I'm searching for something like a CSS in HTML or like the Styles in Android to apply in iOS.

How can I do it?

Answer

I created a library that lets you style storyboards in a way similar to CSS, but using either Swift code or JSON stylesheets.

You can set a different stylesheet for each target in its info.plist without changing any other code.

Link to more info here.

Comments