如何在 Apple App Store 的横幅图片上显示风格的后退按钮?
How to have back button of style being displayed in Apple App Store, on banner images?
我需要后退按钮,它看起来像显示在 Apple App Store 中任何应用程序页面上的按钮,带有横幅图像。见下图:
我已尝试按照此处的指导查找任何可能的系统图标图像名称:
但是没找到合适的。请指导。
系统图标图片名称为chevron.left.circle.fill(有填充色的)和chevron.left.circle(没有填充色的)
默认情况下,填充颜色为黑色,您可以使用前景色选项进行更改。
import SwiftUI
struct ContentView: View {
var body: some View {
List {
Image(systemName: "chevron.left.circle.fill")
.resizable()
.frame(width: 50, height: 50, alignment: .center)
.listRowBackground(Color.green)
Text("")
Image(systemName: "chevron.left.circle")
.resizable()
.frame(width: 50, height: 50, alignment: .center)
.listRowBackground(Color.green)
}
.foregroundColor(.white)
}
}
我需要后退按钮,它看起来像显示在 Apple App Store 中任何应用程序页面上的按钮,带有横幅图像。见下图:
我已尝试按照此处的指导查找任何可能的系统图标图像名称:
但是没找到合适的。请指导。
系统图标图片名称为chevron.left.circle.fill(有填充色的)和chevron.left.circle(没有填充色的)
默认情况下,填充颜色为黑色,您可以使用前景色选项进行更改。
import SwiftUI
struct ContentView: View {
var body: some View {
List {
Image(systemName: "chevron.left.circle.fill")
.resizable()
.frame(width: 50, height: 50, alignment: .center)
.listRowBackground(Color.green)
Text("")
Image(systemName: "chevron.left.circle")
.resizable()
.frame(width: 50, height: 50, alignment: .center)
.listRowBackground(Color.green)
}
.foregroundColor(.white)
}
}