29 lines
938 B
Swift
29 lines
938 B
Swift
import SwiftUI
|
|
import Bedrock
|
|
|
|
struct CropGridLines: View {
|
|
let cropSize: CGSize
|
|
|
|
var body: some View {
|
|
ZStack {
|
|
HStack(spacing: cropSize.width / 3 - Design.LineWidth.thin) {
|
|
ForEach(0..<2, id: \.self) { _ in
|
|
Rectangle()
|
|
.fill(Color.white.opacity(Design.Opacity.light))
|
|
.frame(width: Design.LineWidth.thin, height: cropSize.height)
|
|
}
|
|
}
|
|
|
|
VStack(spacing: cropSize.height / 3 - Design.LineWidth.thin) {
|
|
ForEach(0..<2, id: \.self) { _ in
|
|
Rectangle()
|
|
.fill(Color.white.opacity(Design.Opacity.light))
|
|
.frame(width: cropSize.width, height: Design.LineWidth.thin)
|
|
}
|
|
}
|
|
}
|
|
.frame(width: cropSize.width, height: cropSize.height)
|
|
.allowsHitTesting(false)
|
|
}
|
|
}
|