Skip to content

Commit dffd42b

Browse files
committed
Bump to v2.4.1
2 parents 9c051d2 + a68e3d8 commit dffd42b

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

CHANGELOG.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
# Changelog
22

3-
## [v2.4.0](https://github.com/stleamist/BetterSafariView/releases/tag/v2.4.0) (2020-09-25)
3+
## [v2.4.1](https://github.com/stleamist/BetterSafariView/releases/tag/v2.4.1) (2023-01-15)
4+
### Fixed
5+
- Fixed an issue where the `WebAuthenticationPresenter` fails to find its presentation anchor (#22). Thanks, @kevvdevv, @exentrich, and @ldstreet!
6+
7+
## [v2.4.0](https://github.com/stleamist/BetterSafariView/releases/tag/v2.4.0) (2021-09-25)
48
### Changed
59
- `SafariViewPresenter` and `WebAuthenticationPresenter` now conforms to `UIViewRepresentable`, instead of `UIViewControllerRepresentable`.
610

711
### Fixed
8-
- Fixed an issue where the `SafariView` is not presented on the multi-layered modal sheets (#20). Thanks @twodayslate!
12+
- Fixed an issue where the `SafariView` is not presented on the multi-layered modal sheets (#20). Thanks, @twodayslate!
913

10-
## [v2.3.1](https://github.com/stleamist/BetterSafariView/releases/tag/v2.3.1) (2020-01-20)
14+
## [v2.3.1](https://github.com/stleamist/BetterSafariView/releases/tag/v2.3.1) (2021-01-20)
1115
### Fixed
12-
- Fixed an issue where the `SafariView` is not presented on the modal sheets (#9). Thanks @boherna!
16+
- Fixed an issue where the `SafariView` is not presented on the modal sheets (#9). Thanks, @boherna!
1317

1418
## [v2.3.0](https://github.com/stleamist/BetterSafariView/releases/tag/v2.3.0) (2021-01-19)
1519
### Added

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func prefersEphemeralWebBrowserSession(_ prefersEphemeralWebBrowserSession: Bool
285285
Add the following line to the `dependencies` in your [`Package.swift`](https://developer.apple.com/documentation/swift_packages/package) file:
286286

287287
```swift
288-
.package(url: "https://github.com/stleamist/BetterSafariView.git", .upToNextMajor(from: "2.4.0"))
288+
.package(url: "https://github.com/stleamist/BetterSafariView.git", .upToNextMajor(from: "2.4.1"))
289289
```
290290

291291
Next, add `BetterSafariView` as a dependency for your targets:
@@ -304,7 +304,7 @@ import PackageDescription
304304
let package = Package(
305305
name: "MyPackage",
306306
dependencies: [
307-
.package(url: "https://github.com/stleamist/BetterSafariView.git", .upToNextMajor(from: "2.4.0"))
307+
.package(url: "https://github.com/stleamist/BetterSafariView.git", .upToNextMajor(from: "2.4.1"))
308308
],
309309
targets: [
310310
.target(name: "MyTarget", dependencies: ["BetterSafariView"])

Sources/BetterSafariView/WebAuthenticationSession/WebAuthenticationPresenter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ extension WebAuthenticationPresenter {
179179
// MARK: ASWebAuthenticationPresentationContextProviding
180180

181181
func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor {
182-
return coordinator.view.window!
182+
return coordinator.view.window ?? ASPresentationAnchor()
183183
}
184184
}
185185

0 commit comments

Comments
 (0)