DEV Community

David Goyes
David Goyes

Posted on

SwiftUI #15: Label

Aunque se pueden combinar Text e Image para construir la interfaz, Label muestra un texto junto a una imagen.

struct ContentView: View {
  var body: some View {
    Label("Wifi", systemImage: "dot.radiowaves.forward")
      .font(.system(size: 100))
      .labelStyle(.titleAndIcon)
      .imageScale(.large)
  }
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)