Skip to content

Add width constraints to avoid cropped text #49

@Dekwin

Description

@Dekwin

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions