JamesSedlacek / Routing

SwiftUI library for abstracting navigation logic from views
MIT License
353 stars 19 forks source link

Toast Message Support #9

Closed JamesSedlacek closed 11 months ago

JamesSedlacek commented 11 months ago

I want to be able to present toast messages to the user using the router object. There should be a handful of different kinds of toast messages.

The functions would look something like this:

router.toast(.info, message: "Something informational.")

router.toast(.warning, message: "Something went wrong!")

router.toast(.error, message: "Network Error!")

router.toast(.success, message: "Successfully did something!")
JamesSedlacek commented 11 months ago

Working on this now.