Skip to content

How to align text to top  #2

@arbyruns

Description

@arbyruns

I'm trying to understand how to apply the Axis Text to appear at the top of where axisToolTip is being applied.

Code:

 .axisToolTip(isPresented: $tooltip, alignment: .bottomTrailing, constant: constant, foreground:  {
                                    Label("Contrary to popular belief, Lorem Ipsum is not simply random text.", systemImage: "heart")
                                        .padding()
                                        .frame(width: 200)
                                })

Result

image

Expected

image

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