Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom design options #10

Closed
Wndworks opened this issue Sep 8, 2017 · 2 comments
Closed

Custom design options #10

Wndworks opened this issue Sep 8, 2017 · 2 comments

Comments

@Wndworks
Copy link

Wndworks commented Sep 8, 2017

Is it possible to design the title, the message and the dialog size? The only options i see are the button styles.

@Minitour
Copy link
Owner

Minitour commented Sep 8, 2017

@Wndworks

You can modify the font and font size:

DialogViewController(
                     titleFontSize: CGFloat = 0,
                     messageFontSize: CGFloat = 0,
                     fontName: String = "AvenirNext-Medium",
                     boldFontName: String = "AvenirNext-DemiBold"
)

If you wish to gain more control over the labels you are gonna have to modify the source code:

Change the access modifier from fileprivate to public or open

fileprivate var titleLabel: UILabel!
fileprivate var messageLabel: UILabel!

@Wndworks
Copy link
Author

Wndworks commented Sep 8, 2017

@Minitour

Allright, i can deal with that. Thanks for the fast reply!

@Wndworks Wndworks closed this as completed Sep 8, 2017
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

No branches or pull requests

2 participants