Skip to content

1.3.0-beta

Pre-release
Pre-release

Choose a tag to compare

@joemasilottijoemasilotti released this 30 Sep 16:43
· 19 commits to main since this release
e1026cb

Caution

This is a beta release of 1.3.0. We might introduce breaking changes before the final release is cut, especially as we implement these features for Android.

What's Changed

Tabs are now loaded lazily

by @joemasilotti in #157

The tab bar can now hide screens on push

by @joemasilotti in #159

To opt-in to this behavior set:

Hotwire.config.hidesTabBarWhenPushed = true

Replace actions can now be animated

by @joemasilotti in #166

To opt-in to this behavior set:

Hotwire.config.animateReplaceActions = true

Error views can now be customized

by @svara and @joemasilotti in #163 and #158

import SwiftUI

Hotwire.config.makeCustomErrorView = { error, handler in
    AnyView(MyErrorView(error: error, onRetry: handler))
}

struct MyErrorView: View {
    let error: Error
    let onRetry: ErrorPresenter.Handler?

    var body: some View {
        VStack(spacing: 12) {
            Text("Uh oh…").font(.title.bold())
            Text(error.localizedDescription).multilineTextAlignment(.center)
            if let onRetry {
                Button("Try again", action: onRetry)
            }
        }
        .padding()
    }
}

Redirecting to a modal now correctly pops the originating screen

by @svara and @joemasilotti in #160 and #154

Other changes

New Contributors

Full Changelog: 1.2.2...1.3.0-beta