Use SystemImage for default close button image
mpospese opened this issue · comments
See how we used an enum (and unit test) in YTags for the default close button image, and do something similar, except:
- Update package to require latest YCoreUI
1.7.0
+ - add a new
Images
enum with a single casexmark
(see YTags) - conform
Images
enum toSystemImage
- set renderingMode to
.alwaysTemplate
- test with size scaling. If problematic, set
textStyle
tonil
(no scaling) - add static
defaultImage: UIImage
property that equalsImages.xmark.image
(see YTags) - use
.defaultImage
as the default parameter for the close button instead ofUIImage(systemName: "xmark")
. Update documentation comments and README accordingly if necessary.