WhatsNewKit v1.1.4 Release Notes
Release Date: 2018-12-14 // over 5 years ago-
ImageSize
๐ง In order to define the size of your images for each of your feature you can set an ImageSize on the
ItemsView
configuration.// Use the original image size as it isconfiguration.itemsView.imageSize = .original// Use the preferred image size which fits perfectly :)configuration.itemsView.imageSize = .preferred// Use a custom height for each imageconfiguration.itemsView.imageSize = .fixed(height: 25)
๐ฑ > โ๏ธ By default the ItemsView ImageSize is set to
preferred
.Secondary Title Color
๐ง By setting a SecondaryColor on the TitleView you can change the color of certain characters.
// Set secondary color on TitleView Configurationconfiguration.titleView.secondaryColor = .init( // The start indexstartIndex: 0, // The length of characterslength: 5, // The secondary color to apply color: .whatsNewKitLightBlue)
๐ฑ > โ๏ธ By default the secondaryColor is set to
nil
.Apply TextColor
๐ง From now on you can apply a text color globally on a configuration instead of change the TitleView and ItemsView text color manually.
// Before:configuration.titleView.titleColor = .blackconfiguration.itemsView.titleColor = .blackconfiguration.itemsView.subtitleColor = .black// Now:configuration.apply(textColor: .black)