Skip to content

Conversation

@BBJake
Copy link

@BBJake BBJake commented Jan 21, 2021

For one of our projects we had the need to configure the fonts and the colors of the license.
Because of that we added a struct to configure that...

Example:
var licensesViewControllerConfiguration = LicensesViewControllerConfiguration()
licensesViewControllerConfiguration.tableViewBackgroundColor = AppConstants.Color.skySilver
licensesViewControllerConfiguration.tableViewSeparatorColor = AppConstants.Color.icebergBlue
licensesViewControllerConfiguration.cellBackgroundColor = AppConstants.Color.white
licensesViewControllerConfiguration.cellTitleFontColor = AppConstants.Color.companyBlue
licensesViewControllerConfiguration.cellTitleFont = AppConstants.Font.exoSemiBold(in: 16)
licensesViewControllerConfiguration.cellBodyFontColor = AppConstants.Color.companyBlue
licensesViewControllerConfiguration.cellBodyFont = AppConstants.Font.sourceSansRegular(in: 14)

        licensesController.configuration = licensesViewControllerConfiguration

@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit 301683f and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

View more on Code Climate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants