Skip to content

Instantly share code, notes, and snippets.

@amosgyamfi
Created April 12, 2024 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amosgyamfi/c4b23c7f224b175ca4bffb79f72a4478 to your computer and use it in GitHub Desktop.
Save amosgyamfi/c4b23c7f224b175ca4bffb79f72a4478 to your computer and use it in GitHub Desktop.
//
// 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