![](/img/trans.png)
[英]How to have a “Back button style” in the UINavigatorBar / Button
[英]How to have back button of style being displayed in Apple App Store, on banner images?
我需要有后退按鈕,它看起來像在 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)
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.