Skip to content
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

As a user, I'd like to have .leading alignment by default, not .center #4

Closed
sashamitrovich opened this issue Oct 17, 2020 · 2 comments

Comments

@sashamitrovich
Copy link

This is fantastic, thank you so much!

I noticed that ,by default, the render is centered, which is uncommon, I believe.
How can I change that to leading?

Ideally, .leading should be the default render without the need for any configuration.
Once again, thanks for this fantastic work and building such a simple SwiftUI component.

@dasautoooo
Copy link
Owner

Hi Saša,

Thank you for your feedback. Technically, the Parma view returns a ForEach view which contains all the view that ParmaCore composed.
You can use a VStack to properly align those views.

VStack(alignment: .leading) {
    Parma(markdown)
}

Actually, I agree with you, so I'm planning to add alignment in version 1.0.

Thanks again!

@dasautoooo
Copy link
Owner

Hi @sashamitrovich ,

In the latest release (v0.2.0), Parma has an alignment parameter which default value is .leading.

Thank you again!

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

2 participants