Post

Replies

Boosts

Views

Activity

Comment on Color not working properly
import SwiftUI let darkorange = Color(red: 0.835294117647059, green: 0.513725490196078, blue: 0.470588235294118) var body: some View { Rectangle() .foregroundStyle(darkorange) } I wanted Red 213, Green 131, Blue 120 However, with the code above, I got Red 202, Green 135, Blue 123
Feb ’24
Comment on PencilKit help
No, I want to test if the drawing touches a rectangle. I have a group of red rectangles and blue rectangles, and I want to test if the blue rectangles touched the drawing. the drawing and rectangles are in a ZStack, and the drawing's canvas is set to transparent so it looks like the drawing is done ON to the grid of rectangles. From there, I want to test if the drawing, at ANY point is in contact with one or more of the blue rectangles. Hope this will make me clear.
Feb ’24