Skip to content

Instantly share code, notes, and snippets.

@meyusufdemirci
Last active June 9, 2022 21:48
Show Gist options
  • Save meyusufdemirci/56adaaed790338680e39003cf45b02da to your computer and use it in GitHub Desktop.
Save meyusufdemirci/56adaaed790338680e39003cf45b02da to your computer and use it in GitHub Desktop.
What is New in SwiftUI, WWDC 22 Article
var body: some View {
VStack {
VStack {
Image(systemName: "person")
}
.background(in: Circle().inset(by: -20))
.backgroundStyle(.orange.gradient)
.foregroundStyle(.white.shadow(.drop(radius: 1)))
VStack {
Image(systemName: "house")
}
.background(in: RoundedRectangle(cornerRadius: 16).inset(by: -20))
.backgroundStyle(.orange.gradient)
.foregroundStyle(.white.shadow(.inner(radius: 1)))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment