Commit 75849afb by Daniel Dahan

development: fixed issued where ImageCard top and bottom EdgeInsets were not…

development: fixed issued where ImageCard top and bottom EdgeInsets were not being applied correctly
parent ecd0693d
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = 'Material' s.name = 'Material'
s.version = '2.2.3' s.version = '2.2.4'
s.license = 'BSD-3-Clause' s.license = 'BSD-3-Clause'
s.summary = 'Material is an animation and graphics framework that is used to create beautiful applications.' s.summary = 'Material is an animation and graphics framework that is used to create beautiful applications.'
s.homepage = 'http://materialswift.io' s.homepage = 'http://materialswift.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>2.2.3</string> <string>2.2.4</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
......
...@@ -78,7 +78,7 @@ open class ImageCard: Card { ...@@ -78,7 +78,7 @@ open class ImageCard: Card {
if let v = toolbar { if let v = toolbar {
prepare(view: v, with: toolbarEdgeInsets, from: h) prepare(view: v, with: toolbarEdgeInsets, from: h)
v.y = .top == toolbarAlignment ? 0 : h - v.height v.y = .top == toolbarAlignment ? toolbarEdgeInsets.top : h - v.height - toolbarEdgeInsets.bottom
} }
h = prepare(view: contentView, with: contentViewEdgeInsets, from: h) h = prepare(view: contentView, with: contentViewEdgeInsets, from: h)
......
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