swift-cross-ui icon indicating copy to clipboard operation
swift-cross-ui copied to clipboard

[AppKitBackend] Implement foregroundColor modifier

Open stackotter opened this issue 1 year ago • 1 comments
trafficstars

We'll need to figure out how to cascade styles through the AppKit view hierarchy. Similarly to what Lorenzo faced with WinUIBackend, this seems to be a little tricky since it's not really how the framework is intended to be used.

stackotter avatar Apr 07 '24 14:04 stackotter

This will likely be best addressed by allowing modifiers to be propagated down the view graph and given to all backend methods so that modifiers like foregroundColor can be applied directly to leaf widgets instead of relying on the underlying UI frameworks having cascading styles.

stackotter avatar Apr 08 '24 03:04 stackotter