Created
June 16, 2021 18:37
-
-
Save jordansinger/4d77f1b44223417ec2243c430da089af to your computer and use it in GitHub Desktop.
Original Apple logo in SwiftUI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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