Files
Kisani/Shared/Components/KisaniLogoMark.swift

36 lines
1.0 KiB
Swift
Raw Permalink Normal View History

import SwiftUI
struct KisaniLogoMark: View {
var size: CGFloat = 66
var body: some View {
VStack(spacing: 0) {
driveRow
AppTheme.ink.frame(height: 1.5)
driveRow
AppTheme.ink.frame(height: 1.5)
driveRow
}
.clipShape(RoundedRectangle(cornerRadius: size * 0.167, style: .continuous))
.overlay(
RoundedRectangle(cornerRadius: size * 0.167, style: .continuous)
.strokeBorder(AppTheme.ink, lineWidth: 2.5)
)
.frame(width: size, height: size)
.shadow(color: .black.opacity(0.05), radius: 10, x: 0, y: 2)
}
private var driveRow: some View {
HStack(spacing: 0) {
Spacer()
Circle()
.fill(AppTheme.ink)
.frame(width: size * 0.106, height: size * 0.106)
.padding(.trailing, size * 0.106)
}
.frame(maxWidth: .infinity)
.frame(height: size * 0.273)
.background(AppTheme.surfaceRaised)
}
}