Get your own website
Demo.swift
ContentView.swift
App.swift
 
import SwiftUI

struct AssetsDemo: View {
  var body: some View {
    VStack(spacing: 16) {
      RoundedRectangle(cornerRadius: 12)
        .fill(.tint)
        .frame(height: 80)
        .overlay(Text("Tint").foregroundStyle(.white))
      HStack(spacing: 16) {
        Image(systemName: "photo.fill")
          .font(.system(size: 40))
          .foregroundStyle(.tint)
        Text("Use Assets.xcassets for images and colors")
      }
    }
    .padding()
  }
}

                    
import SwiftUI

struct ContentView: View {
  var body: some View {
    AssetsDemo()
  }
}

                    
import SwiftUI

@main
struct MyApp: App {
  var body: some Scene {
    WindowGroup { ContentView() }
  }
}