Skip to content

Instantly share code, notes, and snippets.

@jpinnix
Forked from jordansinger/AppleLogo.swift
Created June 16, 2021 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpinnix/d23163c85e1290a50c89c0414bf429c2 to your computer and use it in GitHub Desktop.
Save jpinnix/d23163c85e1290a50c89c0414bf429c2 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