我需要有一个后退按钮,该按钮看起来像在Apple App Store的任何应用程序页面上显示的那样,带有横幅图像。见下图:
我尝试按照此处的指导查找任何可能的系统图标图像名称:
https://stackoverflow.com/a/58900114/1152014
但是找不到合适的人。请指导。
系统图标图像名称为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)
}
}