SwiftUI's Mini Coordinator Pattern Demystified 👉 kzbin.info/www/bejne/fmbGmal9pb2lfLM&ab_channel=Rebeloper-RebelDeveloper
@Vadian-i7y8 ай бұрын
Thank you for this neat suggestion, but isn't it more comfortable to replace the bunch of @Published properties, which aren't actually needed except error, with a custom struct for example AlertItem? It contains all alert parameters, and the properties error, title and buttonTitle which are always used in an alert dialog window can even be non-optional. Another benefit is to just set the item to nil rather than resetting all @Published properties.
@rebeloper8 ай бұрын
Great suggestions. See the improvements here: kzbin.info/www/bejne/mqOpdJSHeLehhM0&ab_channel=Rebeloper-RebelDeveloper