Skip to content

Commit

Permalink
Update ColorWellRepresentable.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbaird committed Dec 15, 2023
1 parent 4f01ea7 commit 107cbe4
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@ struct ColorWellRepresentable: NSViewRepresentable {
if colorWell.style != context.environment.colorWellStyleConfiguration.style {
colorWell.style = context.environment.colorWellStyleConfiguration.style
}
if
let swatchColors = context.environment.colorWellSwatchColors,
colorWell.swatchColors != swatchColors
{
colorWell.swatchColors = swatchColors
}
}

func makeCoordinator() -> Coordinator {
Expand Down

0 comments on commit 107cbe4

Please sign in to comment.