0

Пример

SF Symbols Pro: 16.0d18e1 Xcode: 11.6(11E708)

struct ContentView: View {
    var body: some View {
        Image(systemName: "cloud.sun.fill")
            .renderingMode(.original)
    }
}

enter image description here

How do I make the symbol have a color appearance?

jnpdx
  • 45,847
  • 6
  • 64
  • 94

1 Answers1

0

Although your version of the font is new enough to support the multicolored SF Symbols, your version of Xcode is not. This will require version 12+ of Xcode with an iOS 14 simulator.

Same code (with sizing and background to make it more legible) running on Xcode 12.4/iOS 14.4:

struct ContentView: View {
    var body: some View {
        Image(systemName: "cloud.sun.fill")
            .renderingMode(.original)
            .resizable()
            .aspectRatio(contentMode: .fit)
            .frame(width: 100, height: 100)
            .background(Color.blue)
    }

enter image description here

jnpdx
  • 45,847
  • 6
  • 64
  • 94