We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 15becb6 + 10a69c3 commit 0585e6eCopy full SHA for 0585e6e
ScienceJournal/UI/LearnMoreViewController.swift
@@ -102,6 +102,10 @@ class LearnMoreViewController: MaterialHeaderViewController {
102
scrollView.addSubview(stackView)
103
stackView.pinToEdgesOfView(scrollView)
104
stackView.widthAnchor.constraint(equalTo: scrollView.widthAnchor).isActive = true
105
+
106
+ if sensor.learnMore == nil || sensor.learnMore!.isEmpty {
107
+ whatsGoingOnLabel.isHidden = true
108
+ }
109
}
110
111
override func accessibilityPerformEscape() -> Bool {
@@ -116,3 +120,9 @@ class LearnMoreViewController: MaterialHeaderViewController {
116
120
117
121
118
122
123
124
+extension Sensor.LearnMore {
125
+ var isEmpty: Bool {
126
+ firstParagraph.isEmpty && secondParagraph.isEmpty && imageName.isEmpty
127
128
+}
0 commit comments