Commit 32cab6f5 by Daniel Dahan

updated NavigationBarView layout for rightButtons

parent 2c137892
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = 'MK' s.name = 'MK'
s.version = '1.22.0' s.version = '1.23.0'
s.license = { :type => "AGPLv3+", :file => "LICENSE" } s.license = { :type => "AGPLv3+", :file => "LICENSE" }
s.summary = 'A Material Design Framework In Swift' s.summary = 'A Material Design Framework In Swift'
s.homepage = 'http://materialkit.io' s.homepage = 'http://materialkit.io'
......
...@@ -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>1.22.0</string> <string>1.23.0</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
......
...@@ -303,7 +303,7 @@ public class NavigationBarView : MaterialView { ...@@ -303,7 +303,7 @@ public class NavigationBarView : MaterialView {
if 0 < v.count { if 0 < v.count {
var h: String = "H:" var h: String = "H:"
var d: Dictionary<String, AnyObject> = Dictionary<String, AnyObject>() var d: Dictionary<String, AnyObject> = Dictionary<String, AnyObject>()
var i: Int = 0 var i: Int = v.count - 1
for b in v { for b in v {
let k: String = "b\(i)" let k: String = "b\(i)"
...@@ -312,10 +312,10 @@ public class NavigationBarView : MaterialView { ...@@ -312,10 +312,10 @@ public class NavigationBarView : MaterialView {
h += "[\(k)]" h += "[\(k)]"
if 0 == i++ { if 0 == i-- {
h += "-(right_left)-"
} else {
h += "-(right)-" h += "-(right)-"
} else {
h += "-(right_left)-"
} }
addSubview(b) addSubview(b)
......
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