Fix profile sharing broken in iOS 17.4

This commit is contained in:
世界
2024-03-19 09:49:26 +08:00
parent 7098a84187
commit db8cbfa865
3 changed files with 16 additions and 14 deletions
@@ -21,7 +21,9 @@ public struct ProfileShareButton<Label>: View where Label: View {
public var body: some View {
#if os(iOS)
if #available(iOS 16.0, *) {
if #available(iOS 17.4, *) {
bodyCompat
} else if #available(iOS 16.0, *) {
ShareLink(item: profile, subject: Text(profile.name), preview: SharePreview("Share profile"), label: label)
} else if UIDevice.current.userInterfaceIdiom != .pad {
bodyCompat