CatalystControlsGallery icon indicating copy to clipboard operation
CatalystControlsGallery copied to clipboard

Updates to UIViewRepresentable views

Open j-f1 opened this issue 4 years ago • 0 comments

This PR:

  • removes the redundant View conformance
  • converts var properties to let to communicate the single-use immutable nature of representable struct instances
  • update views that use actions to clean up the action before re-adding it
  • avoid re-creating the UIView on each update
  • for Binding-bound views, update the value of the view when the value changes to ensure custom binding behavior is preserved

j-f1 avatar Aug 18 '21 20:08 j-f1