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

Implement basic view modifiers #3

Open
3 of 4 tasks
stackotter opened this issue Mar 20, 2022 · 0 comments
Open
3 of 4 tasks

Implement basic view modifiers #3

stackotter opened this issue Mar 20, 2022 · 0 comments
Labels
API feature A feature request

Comments

@stackotter
Copy link
Owner

stackotter commented Mar 20, 2022

SwiftUI has a concept called view modifiers. SwiftUI's ViewModifier protocol is for modifiers that can apply to any view, but individual views can also declare their own modifiers by creating a method of the form func modifierName(/* parameters */) -> Self which modifies the view accordingly and returns a copy.

The following view modifiers would be the most useful to have:

  • padding
  • foreground (colour)
  • background (colour)
  • scale

If you think of any more, reply below.

The SwiftGtk package currently doesn't support CSS styling which means that the styling feature request for SwiftGtk would have to be completed first. SwiftGtk now supports CSS styling and has been merged into the SwiftCrossUI repo for ease of rapid development.

@stackotter stackotter added the feature A feature request label Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API feature A feature request
Projects
None yet
Development

No branches or pull requests

1 participant