Commit 32cab6f5 by Daniel Dahan

updated NavigationBarView layout for rightButtons

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