Skip to content

Commit e746f57

Browse files
committed
allow important description to wrap
1 parent 2391bc9 commit e746f57

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Mage/ObservationImportantView.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@ import PureLayout
1212
class ObservationImportantView: UIView {
1313
weak var observation: Observation?;
1414
var scheme: MDCContainerScheming?;
15-
var reasonLabel: UILabel = UILabel(forAutoLayout: ());
1615
var flaggedByLabel: UILabel = UILabel(forAutoLayout: ());
1716

17+
private lazy var reasonLabel: UILabel = {
18+
var reasonLabel: UILabel = UILabel(forAutoLayout: ());
19+
reasonLabel.numberOfLines = 0;
20+
return reasonLabel;
21+
}()
22+
1823
private lazy var flagImage: UIImageView = {
1924
let flag = UIImage(named: "flag");
2025
let flagView = UIImageView(image: flag);

0 commit comments

Comments
 (0)