Skip to content

Instantly share code, notes, and snippets.

@jbehrens94
Forked from jordansinger/AppleLogo.swift
Created June 16, 2021 19:38
Show Gist options
  • Save jbehrens94/a7feb3406ad28da53931db0d8fb05348 to your computer and use it in GitHub Desktop.
Save jbehrens94/a7feb3406ad28da53931db0d8fb05348 to your computer and use it in GitHub Desktop.
Original Apple logo in SwiftUI
import SwiftUI
struct ContentView: View {
var body: some View {
VStack(spacing: 0) {
Color.green
Color.green
Color.green
Color.yellow
Color.orange
Color.red
Color.purple
Color.blue
}
.mask(
Image(systemName: "applelogo")
.resizable()
.aspectRatio(contentMode: .fit)
)
.frame(width: 128, height: 128)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment