Skip to content

Commit ce30e9b

Browse files
authored
do not use buggy URL method on iOS 16 (#76)
1 parent 8009261 commit ce30e9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

platform/swift/source/shared/extensions/URL+Extensions.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ extension URL {
2323
///
2424
/// - returns: The path component of the URL.
2525
func normalizedPath() -> String? {
26-
return if #available(iOS 16.0, *) {
26+
return if #available(iOS 17.0, *) {
27+
// The method was introduced in iOS 16.0, but we observed it crashing on iOS 16 (up to 16.7.x).
2728
self.path(percentEncoded: false)
2829
} else {
2930
self.relativePath

0 commit comments

Comments
 (0)