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

Add more options for EmitterPosition #8

Open
DaemonLoki opened this issue Jun 21, 2022 · 0 comments
Open

Add more options for EmitterPosition #8

DaemonLoki opened this issue Jun 21, 2022 · 0 comments
Labels
feature New feature or request good first issue Good for newcomers
Projects
Milestone

Comments

@DaemonLoki
Copy link
Collaborator

The EmitterPosition option for CAEmitterLayer-based effects is pretty limited right now. It only has 3 options:

  1. .top
  2. .center
  3. .bottom

From an implementation standpoint, it is rather straightforward to expand that to more options, like .topLeading, .bottomTrailing, .centerLeading, and all combinations of them.

The calculation of the position also doesn't require much effort as the values are all given due to the embedding in the GeometryReader.

@DaemonLoki DaemonLoki added feature New feature or request good first issue Good for newcomers labels Jun 21, 2022
@DaemonLoki DaemonLoki added this to the v1.1 milestone Jun 21, 2022
@DaemonLoki DaemonLoki added this to To do in Version 1.1 Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request good first issue Good for newcomers
Projects
Development

No branches or pull requests

1 participant