Skip to content

View size when wrapped in SwiftUI view #40

@marklambourne

Description

@marklambourne

I'm using the provided code to wrap SwiftMath in a SwiftUI View. But the default size of that view seems to be infinity in both directions, regardless of the actual size of the content. That's quite different behaviour from most SwiftUI Views, including Text. Makes it difficult to use alongside other items as the layout gets broken. I would expect the default size of the view to be no more than the equation content plus the insets (if there are any). Any ideas? Thanks!

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