Version 1.3.1
Dark-Mode Theme Support
Added support for Dark-Mode when using a predefined Theme (#29, #30)
Use the .red
Theme if you wish that a predefined Theme like .darkRed
and .whiteRed
automatically adapts to the current UserInterfaceStyle.
// Configuration with predefine `red` Theme which auto adapts to the UserInterfaceStyle
// in order to support iOS 13 Dark-Mode
let configuration = WhatsNewViewController.Configuration(
theme: .red
)
Right Layout
Added right layout (#28)
WhatsNewKit
comes with three predefined ItemsView.Layouts
.
Left | Centered | Right |
---|---|---|
// Left Layout
configuration.itemsView.layout = .left
// Centered Layout
configuration.itemsView.layout = .centered
// Right Layout
configuration.itemsView.layout = .right
☝️ In default the ItemsView layout is set to
.left
.