![](/img/trans.png)
[英]Why does the behaviour of LocalizedStringKey depend on whether I pass a string interpolation to its initialiser?
在嘗試回答這個問題時,我發現了一個奇怪的行為。 顯示一個地球儀,但是 顯示“Hello”,然后是 SwiftUI 的內部術語混亂。 一個更簡單的例子是: 我傳遞給LocalizedStringKey.init的值應該是相同的,都是"\(Image(systemName: "globe"))" ,但 ...