Skip to content

Releases: mdb1/ViewStateController

0.1.0

Choose a tag to compare

@mdb1 mdb1 released this 08 Sep 14:50
  • Fix issue with multiple toasts in just one modifier

0.0.9

Choose a tag to compare

@mdb1 mdb1 released this 27 Apr 02:41
3dcb527
  • Just updated CI to run on macos-13

0.0.8

Choose a tag to compare

@mdb1 mdb1 released this 11 Apr 15: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.

/// 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:

someView
    .debugState(controller: $controller, mockInfo: someMockInfo)
Screen.Recording.2023-04-11.at.12.09.35.mov

0.0.6

Choose a tag to compare

@mdb1 mdb1 released this 16 Mar 20:45

Add modifyingIds explanation in the Readme file

Full Changelog: 0.0.5...0.0.6

0.0.5

Choose a tag to compare

@mdb1 mdb1 released this 08 Mar 21:59
9548295
  • Just an update to the Readme file

0.0.4

Choose a tag to compare

@mdb1 mdb1 released this 05 Mar 14:25
3ec0217

Includes:

  • ViewStateController
  • ViewStateModifier
  • withViewStateModifier method
  • LoadingModifierType
  • ErrorView
  • Toasts/SnackBars

Full Changelog: 0.0.3...0.0.4

0.0.3

Choose a tag to compare

@mdb1 mdb1 released this 02 Mar 20:18

Full Changelog: 0.0.2...0.0.3

0.0.2

Choose a tag to compare

@mdb1 mdb1 released this 02 Mar 00:44

Full Changelog: 0.0.1...0.0.2

0.0.1

Choose a tag to compare

@mdb1 mdb1 released this 01 Mar 12:40