Commit 4683c8fa by Daniel Dahan

development: handle nil values set to BasicCard

parent e697f176
...@@ -75,7 +75,6 @@ public class BasicCard : MaterialCard { ...@@ -75,7 +75,6 @@ public class BasicCard : MaterialCard {
t.font = Roboto.mediumWithSize(18) t.font = Roboto.mediumWithSize(18)
t.numberOfLines = 1 t.numberOfLines = 1
} else { } else {
titleLabel?.removeFromSuperview()
titleLabelContainer?.removeFromSuperview() titleLabelContainer?.removeFromSuperview()
} }
} }
...@@ -110,7 +109,6 @@ public class BasicCard : MaterialCard { ...@@ -110,7 +109,6 @@ public class BasicCard : MaterialCard {
l.lineBreakMode = .ByWordWrapping l.lineBreakMode = .ByWordWrapping
prepareCard() prepareCard()
} else { } else {
detailLabel?.removeFromSuperview()
detailLabelContainer?.removeFromSuperview() detailLabelContainer?.removeFromSuperview()
} }
} }
......
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