Skip to content

Instantly share code, notes, and snippets.

@jordansinger
Created June 16, 2021 18:37
Show Gist options
  • Star 29 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save jordansinger/4d77f1b44223417ec2243c430da089af to your computer and use it in GitHub Desktop.
Save jordansinger/4d77f1b44223417ec2243c430da089af 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