Open IAMSolaara opened 3 months ago
Hey @IAMSolaara, I am grateful you took the time to experiment with the crate! No worries about the issue quality, the project was developed as my MSc thesis and I'll be the first to admit it isn't production ready, maybe someday and issues like these definitely help!
Should I make my whole App struct generic over my PageState?
The answer is yes, there's really no other way about it. I know this has really big implications but it's an implicit issue that comes from the advantages of Rust's type system.
If I may ask, how did you find this crate?
Hello, I'm trying to use this crate to make my egui app's page navigation.
I have this in my app:
I want to put this inside my egui app's
App
struct:and so far it compiles fine. But obviously when I want to change the page I need to reassign the
current_app_page
field to the new transitioned state problems arise because of the field's type:How do I go about this?
Should I make my whole App struct generic over my PageState?
I apologize for the quality of this issue but I really don't know what would be a good way to do this.