Changelog History
Page 2
-
v1.1.8 Changes
April 02, 2019๐ Swift 5 support
๐ This release adds Swift 5 and Xcode 10.2 support
-
v1.1.7 Changes
February 11, 2019๐ iOS 9 Minimum Deployment Target
๐ The minimum deployment target has been lowered from iOS
10.0
to iOS9.0
ContentMode
๐ง Setting the
ContentMode
in theItemsView
Configuration will adjust for how your features are arranged along the axis.Top Center Fill ๐ฑ // ContentMode Topconfiguration.itemsView.contentMode = .top// ContentMode Centerconfiguration.itemsView.contentMode = .center// ContentMode Fillconfiguration.itemsView.contentMode = .fill
๐ฑ > โ๏ธ In default the ItemsView ContentMode is set to
top
. -
v1.1.6 Changes
February 02, 2019Layout Insets
If you wish you can modify the layout insets of the
WhatsNewViewController
components.// Set TitleView Insets (Default values)configuration.titleView.insets = UIEdgeInsets(top: 50, left: 20, bottom: 15, right: 20)// Increase the CompletionButton Bottom Inset configuration.completionButton.insets.bottom += 10
iPad Adjustments
๐ง If you wish to modify the
WhatsNewViewController.Configuration
when presenting it on an iPad you can set thepadAdjustment
closure.// Set PadAdjustment closureconfiguration.padAdjustment = { configuration in// Adjust TitleView FontSize configuration.titleView.titleFont = .systemFont(ofSize: 45, weight: .bold) // Invoke default PadAdjustments (Adjusts Insets for iPad) WhatsNewViewController.Configuration.defaultPadAdjustment(&configuration) }
๐ง > โ๏ธ In default the
WhatsNewViewController.Configuration.defaultPadAdjustment
will be invoked. -
v1.1.5 Changes
December 14, 2018๐ Bug Fix
๐ This release fixes a bug which cause a problem when saving or retrieving the presented Version via a
WhatsNewVersionStore
(Issue #14) -
v1.1.4 Changes
December 14, 2018ImageSize
๐ง 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)
-
v1.1.3 Changes
October 20, 2018Layout
0๏ธโฃ In this Version
WhatsNewKit
has the ability to change the layout fromdefault
tocentered
(#6).0๏ธโฃ | Default | Centered | | --- | --- | ๐ฑ |
|
| 0๏ธโฃ | The
default
layout shows an image on the left side and the text on the right side. | Thecentered
layout aligns the image as well as the text in center. |/// Default Layoutconfiguration.itemsView.layout = .default// Centered Layoutconfiguration.itemsView.layout = .centered
๐ฑ > โ๏ธ By default the ItemsView layout is set to
default
.๐ New Example Application
๐จ The
WhatsNewKit
Example Application has been completely refactored and comes with a beautiful new UI.