SwiftOverlays icon indicating copy to clipboard operation
SwiftOverlays copied to clipboard

Add width constraints to avoid cropped text

Open Dekwin opened this issue 6 years ago • 0 comments

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)

Dekwin avatar Jul 27 '18 08:07 Dekwin