Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shape Style? #66

Open
24unix opened this issue Dec 17, 2020 · 0 comments
Open

Shape Style? #66

24unix opened this issue Dec 17, 2020 · 0 comments

Comments

@24unix
Copy link

24unix commented Dec 17, 2020

Hi,

I've got this code:

VStack {
						Text("Active Window Border")
						ColorPickerRing(color: $activeWindowBorderColor, strokeWidth: 30)
							.frame(width: 100, height: 100, alignment: .center)
						HStack {
							Button("Cancel") {
								// somehow reset color
								self.colorPicker = false
								
							}
							Button("OK") {
								self.colorPicker = false
							}
							RoundedRectangle(cornerRadius: 5.0)
								.fill(activeWindowBorderColor)
						}
					}.frame(width: 350, height: 350, alignment: .center)

That throws: Instance method 'fill(_:style:)' requires that 'DynamicColor' (aka 'NSColor') conform to 'ShapeStyle'

But when I user Color.white it works.

Can anybody explain that thing with ShapeStyle?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant