Created
April 12, 2024 22:55
-
-
Save amosgyamfi/c4b23c7f224b175ca4bffb79f72a4478 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// | |
// CloudCompositingView.swift | |
// OpenSwiftUIDesigns | |
// | |
// Created by Amos Gyamfi on 9.4.2024. | |
// | |
import SwiftUI | |
struct CloudCompositingView: View { | |
var body: some View { | |
HStack(alignment: .bottom, spacing: -26) { | |
Circle() | |
.frame(width: 40, height: 40) | |
ZStack { | |
Circle() | |
.frame(width: 80, height: 80) | |
Circle() | |
.trim(from: 0.5, to: 1) | |
.frame(width: 80, height: 80) | |
.offset(x: 6, y: 40) | |
} | |
Circle() | |
.frame(width: 60, height: 60) | |
} | |
//.compositingGroup() | |
.shadow(color: .red, radius: 10) | |
//.opacity(0.5) | |
//.blendMode(.difference) | |
} | |
} | |
#Preview { | |
CloudCompositingView() | |
.preferredColorScheme(.dark) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment