Skip to content

Commit 8a7597e

Browse files
committed
Update more files.
1 parent 144c591 commit 8a7597e

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

Xcodes/Frontend/XcodeList/AppStoreButtonStyle.swift

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,33 +97,45 @@ struct AppStoreButtonStyle_Previews: PreviewProvider {
9797
Group {
9898
ForEach([ColorScheme.light, .dark], id: \.self) { colorScheme in
9999
Group {
100-
Button("OPEN".hideInLocalizations, action: {})
100+
Button{ } label: {
101+
Text(verbatim: "OPEN")
102+
}
101103
.buttonStyle(AppStoreButtonStyle(primary: true, highlighted: false))
102104
.padding()
103105
.background(Color(.textBackgroundColor))
104106
.previewDisplayName("Primary")
105-
Button("OPEN".hideInLocalizations, action: {})
107+
Button{ } label: {
108+
Text(verbatim: "OPEN")
109+
}
106110
.buttonStyle(AppStoreButtonStyle(primary: true, highlighted: true))
107111
.padding()
108112
.background(Color(.controlAccentColor))
109113
.previewDisplayName("Primary, Highlighted")
110-
Button("OPEN".hideInLocalizations, action: {})
114+
Button{ } label: {
115+
Text(verbatim: "OPEN")
116+
}
111117
.buttonStyle(AppStoreButtonStyle(primary: true, highlighted: false))
112118
.padding()
113119
.disabled(true)
114120
.background(Color(.textBackgroundColor))
115121
.previewDisplayName("Primary, Disabled")
116-
Button("INSTALL".hideInLocalizations, action: {})
122+
Button{ } label: {
123+
Text(verbatim: "INSTALL")
124+
}
117125
.buttonStyle(AppStoreButtonStyle(primary: false, highlighted: false))
118126
.padding()
119127
.background(Color(.textBackgroundColor))
120128
.previewDisplayName("Secondary")
121-
Button("INSTALL".hideInLocalizations, action: {})
129+
Button{ } label: {
130+
Text(verbatim: "INSTALL")
131+
}
122132
.buttonStyle(AppStoreButtonStyle(primary: false, highlighted: true))
123133
.padding()
124134
.background(Color(.controlAccentColor))
125135
.previewDisplayName("Secondary, Highlighted")
126-
Button("INSTALL".hideInLocalizations, action: {})
136+
Button{ } label: {
137+
Text(verbatim: "INSTALL")
138+
}
127139
.buttonStyle(AppStoreButtonStyle(primary: false, highlighted: false))
128140
.padding()
129141
.disabled(true)

0 commit comments

Comments
 (0)