Skip to content

Version 1.3.1

Compare
Choose a tag to compare
@SvenTiigi SvenTiigi released this 02 Nov 09:46

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
Default Layout Centered Layout Right Layout
// 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.