Skip to content

Commit f60bebf

Browse files
committed
feat: add AppStore redirection
1 parent c05d171 commit f60bebf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/AppLibrary/SettingAppItemCell.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
import SwiftUI
99

1010
public struct SettingAppItemCell: View {
11+
12+
@Environment(\.openURL) var openURL
13+
1114
public var meta: AppMetaData
1215

1316
public init(meta: AppMetaData) {
@@ -30,6 +33,10 @@ public struct SettingAppItemCell: View {
3033
}
3134
}
3235
.padding(.vertical, 8)
36+
.contentShape(Rectangle())
37+
.onTapGesture {
38+
openURL(URL(string: meta.storeURL())!)
39+
}
3340
}
3441
}
3542

0 commit comments

Comments
 (0)