ryanmcgrath / cacao

Rust bindings for AppKit (macOS) and UIKit (iOS/tvOS). Experimental, but working!
MIT License
1.8k stars 65 forks source link

Minimal example with button #1

Closed ivanceras closed 3 years ago

ivanceras commented 4 years ago

The library seems to have all the needed controls/widgets, but I'm struggling to add a button in a window.

ryanmcgrath commented 4 years ago

Is this for a sauron-native type deal, or for an app?

If the latter, unfortunately buttons work best inside toolbars right now - I have some updates pending but business has kept me busy the past month or two. Definitely welcome to outside contributions as well.

If the former, would be interested in what you need. :)

ivanceras commented 4 years ago

Yes, it would be for sauron-native. It would be great if there are more examples, showcasing the components. I would like to see how to embed each of these components. It would also be nice to see which child component is allowed in parent component.

ryanmcgrath commented 3 years ago

FYI, there's a todos_list and calculator example which showcase the framework better. It's still under heavy development so I'd caution against committing to it just yet, but wanted to follow up here for anyone interested.