Commit f0a5cce7 by Daniel Dahan

issue-911: Added @objc to TabBar.tabItems for visibility in Obj-C.

parent 6a3236d2
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = 'Material' s.name = 'Material'
s.version = '2.12.0' s.version = '2.12.1'
s.license = 'BSD-3-Clause' s.license = 'BSD-3-Clause'
s.summary = 'A UI/UX framework for creating beautiful applications.' s.summary = 'A UI/UX framework for creating beautiful applications.'
s.homepage = 'http://materialswift.com' s.homepage = 'http://materialswift.com'
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>FMWK</string> <string>FMWK</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>2.12.0</string> <string>2.12.1</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
......
...@@ -200,6 +200,7 @@ open class TabBar: Bar { ...@@ -200,6 +200,7 @@ open class TabBar: Bar {
} }
/// TabItems. /// TabItems.
@objc
open var tabItems = [TabItem]() { open var tabItems = [TabItem]() {
didSet { didSet {
for b in oldValue { for b in oldValue {
...@@ -287,6 +288,7 @@ fileprivate extension TabBar { ...@@ -287,6 +288,7 @@ fileprivate extension TabBar {
/// Prepares the tabItems. /// Prepares the tabItems.
func prepareTabItems() { func prepareTabItems() {
shouldNotAnimateLineView = true shouldNotAnimateLineView = true
for v in tabItems { for v in tabItems {
v.grid.columns = 0 v.grid.columns = 0
v.contentEdgeInsets = .zero v.contentEdgeInsets = .zero
......
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