Skip to content

Instantly share code, notes, and snippets.

@anupamchugh
Created June 8, 2022 06:22

Revisions

  1. anupamchugh created this gist Jun 8, 2022.
    11 changes: 11 additions & 0 deletions SwiftUI-drop-inner-shadows.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    ZStack{

    Circle().fill(.red.gradient.shadow(.drop(color: .black, radius: 10)).shadow(.inner(radius: 10)))
    .frame(width: 150, height: 150)

    Image(systemName: "swift")
    .resizable()
    .aspectRatio(contentMode: .fit)
    .frame(width: 75, height: 75)

    }