Skip to content

Add width constraints to avoid cropped text #49

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

Open
Dekwin opened this issue Jul 27, 2018 · 0 comments
Open

Add width constraints to avoid cropped text #49

Dekwin opened this issue Jul 27, 2018 · 0 comments

Comments

@Dekwin
Copy link

Dekwin commented Jul 27, 2018

I use method SwiftOverlays.showBlockingWaitOverlayWithText("example. many words ...")

If the string argument contains a several sentences ( > 8-10 words) the width will be more than the width of the screen (iPhone 5s for e.g.)
So, we need width constraints.

If we have universal app, the solution below is not suitable.(because we need different strings for ipad(without \n) and iphone)

// Overlay with text only
let text = "This is a text-only overlay...\n...spanning several lines"
self.showTextOverlay(text)
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

1 participant