Skip to content

Commit

Permalink
feat: add AppStore redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
akring committed Sep 19, 2023
1 parent c05d171 commit f60bebf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/AppLibrary/SettingAppItemCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
import SwiftUI

public struct SettingAppItemCell: View {

@Environment(\.openURL) var openURL

public var meta: AppMetaData

public init(meta: AppMetaData) {
Expand All @@ -30,6 +33,10 @@ public struct SettingAppItemCell: View {
}
}
.padding(.vertical, 8)
.contentShape(Rectangle())
.onTapGesture {
openURL(URL(string: meta.storeURL())!)
}
}
}

Expand Down

0 comments on commit f60bebf

Please sign in to comment.