checkign for empty
This commit is contained in:
parent
201e328169
commit
291972dbe1
@ -76,19 +76,19 @@ import Foundation
|
||||
|
||||
var message = ""
|
||||
|
||||
if let eyebrowLabel = eyebrow.text {
|
||||
if let eyebrowLabel = eyebrow.text, !eyebrowLabel.isEmpty {
|
||||
message += eyebrowLabel + ", "
|
||||
}
|
||||
|
||||
if let headlineLabel = headline.text {
|
||||
if let headlineLabel = headline.text, !headlineLabel.isEmpty {
|
||||
message += headlineLabel + ", "
|
||||
}
|
||||
|
||||
if let subHeadlineLabel = subHeadline.text {
|
||||
if let subHeadlineLabel = subHeadline.text, !subHeadlineLabel.isEmpty {
|
||||
message += subHeadlineLabel + ", "
|
||||
}
|
||||
|
||||
if let bodyLabel = body.text {
|
||||
if let bodyLabel = body.text, !bodyLabel.isEmpty {
|
||||
message += bodyLabel
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user