Last active
June 5, 2019 16:29
-
-
Save rtking1993/e32de623605e2380a9a168f9abdddda5 to your computer and use it in GitHub Desktop.
CircleImage supporting view which is displayed within Safari Animals
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
// MARK: - Frameworks | |
import SwiftUI | |
// MARK: - CircleImage | |
struct CircleImage: View { | |
var image: Image | |
var body: some View { | |
image | |
.clipShape(Circle()) | |
.overlay(Circle().stroke(Color.white, lineWidth: 4)) | |
.shadow(radius: 12) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment