Skip to content

Releases: hotwired/hotwire-native-ios

1.3.0-beta

30 Sep 16:43
e1026cb

Choose a tag to compare

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 = 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

1.2.2

31 Jul 08:57
595dba3

Choose a tag to compare

What's Changed

  • Automatically manage app lifecycle status by @svara in #149

Breaking Changes

Manual tracking of app lifecycle status has been removed and replaced with a dedicated AppLifecycleObserver to automatically manage and observe application state changes. See #149

Full Changelog: 1.2.1...1.2.2

1.2.1

23 Jun 14:38
c466d33

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.2.0...1.2.1

1.2.0

23 Apr 18:09
f18b879

Choose a tag to compare

What's Changed

  • Fix unexpected modal refreshes by @leonvogt in #95
  • Fix unremoved screenshot - feedback by @svara in #99
  • Ensure destinationIsActive is set to true when webView is loaded by @williamkennedy in #84
  • only update the navigation bar title when loading a page, not the tabs by @dorianmariecom in #103
  • Include default server route rules by default by @svara in #76
  • Reflect current web view page location in VisitableViewController by @svara in #108
  • Revert "Reflect current web view page location in VisitableViewController" by @svara in #116
  • Reflect current page location by @svara in #118
  • Route decision handlers by @svara in #105
  • Hotwire tab view controller feedback by @joemasilotti in #117
  • Hotwire tab view controller by @svara in #109
  • Identify navigator when requesting handling by delegate by @olivaresf in #113
  • Expose request did finish - feedback by @svara in #119
  • Add internal parameter name to new function by @joemasilotti in #120
  • Notify bridge destination when a component is initialized by @svara in #121
  • Update the web bridge reference to match hotwire-native-bridge v1.2+ by @jayohms in #123
  • Add tabs and use new Rails-powered demo site by @joemasilotti in #87
  • Use weak instead of unowned references for delegates by @svara in #125

Breaking Changes

  • All routing now flows through route decision handlers. See #105
  • The Navigator is now identified when requesting handling by the NavigatorDelegate. See #113

New Contributors

Full Changelog: 1.1.3...1.2.0

1.1.3

10 Mar 19:45
56196ac

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.1.2...1.1.3

1.1.2

31 Jan 16:33
0bc9f80

Choose a tag to compare

What's Changed

  • Fix URL in comment by @claudiob in #72
  • Expose userAgent as get only property by @jpsphaxer in #75
  • Ignore cross-origin redirects that aren’t happening in the main frame by @svara in #80

New Contributors

Full Changelog: 1.1.1...1.1.2

1.1.1

10 Jan 15:47
0c20bcb

Choose a tag to compare

What's Changed

  • Detect cross-origin redirects during visits by @svara in #70

Full Changelog: 1.1.0...1.1.1

1.1.0

18 Dec 13:14
aa5da14

Choose a tag to compare

Breaking API Changes

Please note there are a couple minor breaking API changes:

  • All Hotwire configuration must now be done globally in the AppDelegate. See #55 for details.
  • Your app can now define a user-agent prefix (not the entire user agent) specific to your application. The library will take care of adding the other necessary user-agent info including the bridge component registration. See #56 for details.

What's Changed

  • Global configuration consolidation by @svara in #55
  • Breaking API change: applications can set a User-Agent prefix by @joemasilotti in #56
  • Fix bridge registration by @svara in #59
  • Fix double-visits after modal form submission redirects by @jayohms in #60
  • Additional modal presentation styles by @svara in #61
  • Disable link prefetching via the turbo js adapter to prevent double-visit requests by @jayohms in #62
  • Path config underscores by @joemasilotti in #63

New Contributors

Full Changelog: 1.0.1...1.1.0

How to Migrate

Read about all the details and how to migrate: https://masilotti.com/hotwire-native-1.1/

1.0.1

05 Dec 10:10
08bdabe

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.0.0...1.0.1

1.0.0

25 Sep 06:57
9c7d6c2

Choose a tag to compare

What's Changed

First public release! 🎉

New Contributors

Full Changelog: https://github.com/hotwired/hotwire-native-ios/commits/1.0.0