You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Not sure if this belongs in here or its own task, but the lack of disabled for Buttons is a pretty obvious one that i encountered 10 seconds into looking into this library.
disabled is a little more complex than it appears at first because it disables all controls (buttons, text fields, etc) no matter how deep in the view hierarchy they may be. I agree that it is necessary, though.
It has been on my todos for quite a while but I’ve mostly been focusing on other parts of SwiftCrossUI. Now that I’ve implemented an environment system, propagating disabledness down the view hierarchy should be easy enough. The backend implementations for disabling all the various controls would probably take an hour or something? With Windows being the annoying one cause SwiftCrossUI stuff takes quite a while to build in my Windows VM atm (due to the swift-winui library I’m using).
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 formfunc 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.The text was updated successfully, but these errors were encountered: