Commit 64af2820 by Daniel Dahan

Updated TabsController with transition coordination fixes

parent 4adcbd3f
## 2.12.5
* Updated to [Motion 1.2.4](https://github.com/CosmicMind/Motion/releases/tag/1.2.4).
* [issue-937](https://github.com/CosmicMind/Material/issues/937): Added @objc to `TabBar.lineColor` for access availability.
* [pr-934](https://github.com/CosmicMind/Material/pull/934): Added access to the `TabBar.line` view.
## 2.12.4
* Updated to [Motion 1.2.3](https://github.com/CosmicMind/Motion/releases/tag/1.2.3).
......
Pod::Spec.new do |s|
s.name = 'Material'
s.version = '2.12.4'
s.version = '2.12.5'
s.license = 'BSD-3-Clause'
s.summary = 'A UI/UX framework for creating beautiful applications.'
s.homepage = 'http://materialswift.com'
......
Subproject commit 9d898243db235f6f83e128bd632141bb36d73d84
Subproject commit b9a2576453296a86582ed43aad357456e76a7924
......@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.12.4</string>
<string>2.12.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
......
......@@ -257,6 +257,17 @@ open class TabBar: Bar {
}
}
/// The line color.
@objc
open var lineColor: UIColor {
get {
return lineColorForState[.selected]!
}
set(value) {
lineColorForState[.selected] = value
}
}
open override func layoutSubviews() {
super.layoutSubviews()
guard willLayout else {
......
......@@ -222,8 +222,6 @@ fileprivate extension TabsController {
view.isUserInteractionEnabled = false
fvc.beginAppearanceTransition(false, animated: true)
Motion.shared.transition(from: fvc, to: viewController, in: container) { [weak self, tvc = tvc, isAuto = isAuto, completion = completion] (isFinished) in
guard let s = self else {
return
......@@ -238,8 +236,6 @@ fileprivate extension TabsController {
s.removeViewController(viewController: fvc)
fvc.endAppearanceTransition()
completion?(isFinished)
if isTriggeredByUserInteraction {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment