Replies: 2 comments
-
Perhaps #[relm4::component(libadwaita)] can be shortened to #[relm4::component(adw)] too |
Beta Was this translation helpful? Give feedback.
0 replies
-
There is a prelude in the gtk4, libadwaita and relm4 crate that you can use for most important types and especially traits. So, albeit a bit longer than the SwiftUI import, you could use something like this: use gtk::{*, prelude::*};
use adw::{*, prelude::*};
use relm4::{*, prelude::*}; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When trying SwiftUI, I noticed that I can put
import SwiftUI
and everything would be imported, no need to specify which component. I think this would greatly improve developer experience for newcomers, who may not be familiar with all the different components and would frequently run into the problem where they don't know which crate they need to import what they want from.Perhaps the Relm4 could be something like:
Beta Was this translation helpful? Give feedback.
All reactions