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

Text Align #11

Open
aled2305 opened this issue Jun 19, 2020 · 2 comments
Open

Text Align #11

aled2305 opened this issue Jun 19, 2020 · 2 comments

Comments

@aled2305
Copy link

Hi. I seem to have everything working, but the alert title is aligned to the left. Is there a way of centring this?
104437079_214244046272448_8050129404133207551_n

Thanks

@Vortec4800
Copy link
Contributor

Hm, bummer. We wanted to left-justify the main message label but keep the title centered, otherwise release notes look weird especially when they are bullet lists.

https://github.com/EightyThreeCreative/ShineUpdater/blob/master/Shine/Shine.swift#L354

You can see there where we used a hack to get the labels from the UIAlertController and it seems they changed the order of the subviews. We should probably come up with a better solution for this in general, though I'm hesitant to include UI that's heavier than an alert. Thoughts?

@Vortec4800
Copy link
Contributor

In that same Stack Overflow question from the source, there is another method of left justifying the message by using an attributed string with a paragraph style. This is probably a better method than mucking about in the view hierarchy.

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