The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
- Fix issue with multiple toasts in just one modifier
* Just updated CI to run on macos-13
* Add DebugState modifier
For DEBUG builds, there is a view extension that you can apply to any view, that lets you modify the state of the controller with ease.
```swift
/// Applies the debug state modifier to the view.
/// By tapping 3 times on the view, a modal will be displayed with options to debug
/// the state of the controller.
extension View {
public func debugState<Info>(
controller: Binding<ViewStateController<Info>>,
mockInfo: Info
) -> some View {
#if DEBUG
// Only apply the debug state modifier in debug builds
self.modifier(DebugStateModifier(controller: controller, mockInfo: mockInfo))
#endif
}
}
```
Usage:
```swift
someView
.debugState(controller: $controller, mockInfo: someMockInfo)
```
https://user-images.githubusercontent.com/5333984/231207650-8579219c-e583-4180-aeaf-c114eaf22586.mov
Add `modifyingIds` explanation in the Readme file
**Full Changelog**: https://github.com/mdb1/ViewStateController/compare/0.0.5...0.0.6
* Just an update to the Readme file
## Includes:
* ViewStateController
* ViewStateModifier
* `withViewStateModifier` method
* LoadingModifierType
* ErrorView
* Toasts/SnackBars
**Full Changelog**: https://github.com/mdb1/ViewStateController/compare/0.0.3...0.0.4
**Full Changelog**: https://github.com/mdb1/ViewStateController/compare/0.0.2...0.0.3
**Full Changelog**: https://github.com/mdb1/ViewStateController/compare/0.0.1...0.0.2
**Full Changelog**: https://github.com/mdb1/ViewStateController/commits/0.0.1