Skip to content

Commit 0cb4e38

Browse files
committed
T14564385 - T14564382 Applied fix for ads urlHost crash
(cherry picked from commit 8bd1017)
1 parent 795b837 commit 0cb4e38

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Modules/Presentation/Features/Accounts/Sources/Accounts/Ads/ViewModel/AdsWebViewCoordinatorViewModel.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ struct AdsWebViewCoordinatorViewModel {
2323
}
2424

2525
func urlHost(url: URL?) -> String? {
26-
guard let url else { return nil }
27-
28-
guard #available(iOS 16.0, *) else {
29-
return url.host
30-
}
31-
return url.host()
26+
url?.host
3227
}
3328
}

0 commit comments

Comments
 (0)