1.3.0-beta
Pre-release
Pre-release
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 = trueReplace actions can now be animated
by @joemasilotti in #166
To opt-in to this behavior set:
Hotwire.config.animateReplaceActions = trueError 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
- A typo fix by @frenkel in #170
- The demo app now includes an authentication flow by @joemasilotti in #168
New Contributors
Full Changelog: 1.2.2...1.3.0-beta