Releases: SvenTiigi/WhatsNewKit
Version 1.3.5
Bug fix
Fixed a bug where the comparison of two WhatsNew.Version
instances might ended up in a wrong result (PR #43)
Version 1.3.4
Bug fix
- Fixed: Aspect ratio not preserved when using fixed imageSize (#41) | PR from @AndrewBennet (#42)
Version 1.3.3
Bug fix
Fixed a bug (#40) which caused the following Xcode output when changing/updating the CompletionButton
background color
CGContextSetFillColorWithColor: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
CGContextGetCompositeOperation: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
CGContextSetCompositeOperation: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
CGContextFillRects: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
CGContextSetCompositeOperation: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Version 1.3.2
Title Mode | PR from @Fudge0952 (#38)
In default the TitleView is sticked to the top.
If you wish that the TitleView scrolls with the ItemsView you can change the titleMode
on the TitleView configuration.
// TitleView scrolls alongside with the ItemsView
configuration.titleView.titleMode = .scrolls
// TitleView is fixed to top
configuration.titleView.titleMode = .fixed
☝️ In default the titleMode is set to
.fixed
.
Hide Status-Bar (#35)
This version adds the option to hide the status bar.
// Hide Status-Bar
configuration.prefersStatusBarHidden = true
☝️ In default prefersStatusBarHidden is set to
false
.
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
.
Version 1.3.0
iOS 13 Support
- Layout improvements to match iOS 13 style (#25).
- Fixed a problem under iOS 13 where animations are not triggered when presented modally (#26).
- Fixed a bug under iOS 13 where
contentMode
was no correctly displayed (#24). WhatsNew.Version
now gets stored even if theWhatsNewViewController
modal presentation is cancelled via a slide down under iOS13
Version 1.2.0
Swift Package Manager Support
Added support for Swift Package Manager 📦
Version 1.1.9
ItemsView animation bug fix
Fixed a bug where the ItemsView
has not been correctly animated (#20)
Version 1.1.8
Swift 5 support
This release adds Swift 5 and Xcode 10.2 support
Version 1.1.7
iOS 9 Minimum Deployment Target
The minimum deployment target has been lowered from iOS 10.0
to iOS 9.0
ContentMode
Setting the ContentMode
in the ItemsView
Configuration will adjust for how your features are arranged along the axis.
Top | Center | Fill |
---|---|---|
// ContentMode Top
configuration.itemsView.contentMode = .top
// ContentMode Center
configuration.itemsView.contentMode = .center
// ContentMode Fill
configuration.itemsView.contentMode = .fill
☝️ In default the ItemsView ContentMode is set to
top
.