damus-io / notedeck

A multiplatform nostr client
Other
52 stars 9 forks source link

Introduce View and Preview traits #24

Closed jb55 closed 2 months ago

jb55 commented 2 months ago

In this commit we refactor the preview mechanism, and switch to responsive views by default.

To create a preview, your view now has to implement the Preview trait. This is very similar to SwiftUI's preview mechanism.