Commit d8ec48b9 by Daniel Dahan

development: issue-588: fixed GridAxis memory leak issue

parent 52657f40
Pod::Spec.new do |s|
s.name = 'Material'
s.version = '2.3.3'
s.version = '2.3.4'
s.license = 'BSD-3-Clause'
s.summary = 'Material is an animation and graphics framework that is used to create beautiful applications.'
s.homepage = 'http://materialswift.com'
......
......@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.3.3</string>
<string>2.3.4</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
......
......@@ -98,14 +98,14 @@ public class Grid {
}
/// Offsets for rows and columns.
public var offset: GridOffset {
public var offset = GridOffset() {
didSet {
reload()
}
}
/// The axis in which the Grid is laying out its views.
public var axis: GridAxis {
public var axis = GridAxis() {
didSet {
reload()
}
......@@ -154,7 +154,7 @@ public class Grid {
}
/// An Array of UIButtons.
public var views: [UIView] {
public var views = [UIView]() {
didSet {
for v in oldValue {
v.removeFromSuperview()
......@@ -174,9 +174,6 @@ public class Grid {
self.rows = rows
self.columns = columns
self.interimSpace = interimSpace
offset = GridOffset()
axis = GridAxis()
views = []
}
/// Begins a deferred block.
......
......@@ -55,7 +55,7 @@ public class NavigationItem: NSObject {
public private(set) lazy var detailLabel = UILabel()
/// Left items.
public var leftViews: [UIView] {
public var leftViews = [UIView]() {
didSet {
for v in oldValue {
v.removeFromSuperview()
......@@ -65,7 +65,7 @@ public class NavigationItem: NSObject {
}
/// Right items.
public var rightViews: [UIView] {
public var rightViews = [UIView]() {
didSet {
for v in oldValue {
v.removeFromSuperview()
......@@ -105,9 +105,7 @@ public class NavigationItem: NSObject {
/// Initializer.
public override init() {
leftViews = []
rightViews = []
super.init()
super.init()
prepareTitleLabel()
prepareDetailLabel()
}
......
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