Commit 5a50bc7a by Daniel Dahan

development: issue-643: Fixed issue, where Layout was not anchoring correctly on View subclasses

parent 862af9ae
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = 'Material' s.name = 'Material'
s.version = '2.4.2' s.version = '2.4.3'
s.license = 'BSD-3-Clause' s.license = 'BSD-3-Clause'
s.summary = 'Material is an animation and graphics framework for Google\'s Material Design in Swift.' s.summary = 'Material is an animation and graphics framework for Google\'s Material Design in Swift.'
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.4.2</string> <string>2.4.3</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
......
...@@ -198,7 +198,7 @@ open class Card: PulseView { ...@@ -198,7 +198,7 @@ open class Card: PulseView {
} }
container.height = h container.height = h
bounds.size.height = h height = h
} }
/** /**
......
...@@ -94,6 +94,6 @@ open class ImageCard: Card { ...@@ -94,6 +94,6 @@ open class ImageCard: Card {
} }
container.height = h container.height = h
bounds.size.height = h height = h
} }
} }
...@@ -38,7 +38,7 @@ open class Layer: CAShapeLayer { ...@@ -38,7 +38,7 @@ open class Layer: CAShapeLayer {
allows the dropshadow effect on the backing layer, while clipping allows the dropshadow effect on the backing layer, while clipping
the image to a desired shape within the visualLayer. the image to a desired shape within the visualLayer.
*/ */
open internal(set) var visualLayer = CAShapeLayer() open let visualLayer = CAShapeLayer()
/** /**
A property that manages an image for the visualLayer's contents A property that manages an image for the visualLayer's contents
......
...@@ -79,6 +79,6 @@ open class PresenterCard: Card { ...@@ -79,6 +79,6 @@ open class PresenterCard: Card {
} }
container.height = h container.height = h
bounds.size.height = h height = h
} }
} }
...@@ -49,7 +49,8 @@ open class Snackbar: Bar { ...@@ -49,7 +49,8 @@ open class Snackbar: Bar {
} }
/// Text label. /// Text label.
public internal(set) lazy var textLabel = UILabel() @IBInspectable
open let textLabel = UILabel()
open override var intrinsicContentSize: CGSize { open override var intrinsicContentSize: CGSize {
return CGSize(width: width, height: 49) return CGSize(width: width, height: 49)
......
...@@ -31,13 +31,17 @@ ...@@ -31,13 +31,17 @@
import UIKit import UIKit
open class View: UIView { open class View: UIView {
open override var intrinsicContentSize: CGSize {
return CGSize(width: width, height: height)
}
/** /**
A CAShapeLayer used to manage elements that would be affected by A CAShapeLayer used to manage elements that would be affected by
the clipToBounds property of the backing layer. For example, this the clipToBounds property of the backing layer. For example, this
allows the dropshadow effect on the backing layer, while clipping allows the dropshadow effect on the backing layer, while clipping
the image to a desired shape within the visualLayer. the image to a desired shape within the visualLayer.
*/ */
open internal(set) var visualLayer = CAShapeLayer() open let visualLayer = CAShapeLayer()
/** /**
A property that manages an image for the visualLayer's contents A property that manages an image for the visualLayer's contents
......
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