| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import SwiftUI
- struct RedditLogoView: View {
- var size: CGFloat = 20
- var body: some View {
- ZStack {
- Circle()
- .fill(
- LinearGradient(
- colors: [Color(hex: 0xFF7B2F), Color(hex: 0xFF4500)],
- startPoint: .topLeading,
- endPoint: .bottomTrailing
- )
- )
- .frame(width: size, height: size)
- .shadow(color: Color(hex: 0xFF4500).opacity(0.4), radius: size * 0.15, y: size * 0.06)
- Circle()
- .fill(
- LinearGradient(
- colors: [.white, Color.white.opacity(0.92)],
- startPoint: .top,
- endPoint: .bottom
- )
- )
- .frame(width: size * 0.44, height: size * 0.44)
- .offset(y: -size * 0.07)
- Circle()
- .fill(Color(hex: 0xFF4500))
- .frame(width: size * 0.15, height: size * 0.15)
- .offset(x: -size * 0.095, y: -size * 0.11)
- Circle()
- .fill(Color(hex: 0xFF4500))
- .frame(width: size * 0.15, height: size * 0.15)
- .offset(x: size * 0.095, y: -size * 0.11)
- Capsule()
- .fill(
- LinearGradient(
- colors: [.white, Color.white.opacity(0.9)],
- startPoint: .top,
- endPoint: .bottom
- )
- )
- .frame(width: size * 0.52, height: size * 0.2)
- .offset(y: size * 0.17)
- }
- .frame(width: size, height: size)
- }
- }
|