|
@@ -63,13 +63,13 @@ public class QmeraCreateStreamingViewController: UITableViewController {
|
|
|
lazy var titleView: UITextField = {
|
|
|
let textField = UITextField()
|
|
|
textField.borderStyle = .none
|
|
|
- textField.placeholder = "Title".localized()
|
|
|
+ textField.placeholder = "Title".localized() + "*"
|
|
|
return textField
|
|
|
}()
|
|
|
|
|
|
lazy var descriptionView: UITextView = {
|
|
|
let textView = UITextView()
|
|
|
- textView.text = "Description".localized()
|
|
|
+// textView.text = "Description".localized() + "*"
|
|
|
textView.textColor = UIColor.lightGray
|
|
|
return textView
|
|
|
}()
|
|
@@ -292,6 +292,20 @@ public class QmeraCreateStreamingViewController: UITableViewController {
|
|
|
type = "0"
|
|
|
}
|
|
|
|
|
|
+ if type == "5" && members.count == 0 {
|
|
|
+ let imageView = UIImageView(image: UIImage(systemName: "xmark.circle.fill"))
|
|
|
+ imageView.tintColor = .white
|
|
|
+ let banner = FloatingNotificationBanner(title: "Please select at least 1 user".localized(), subtitle: nil, titleFont: UIFont.systemFont(ofSize: 16), titleColor: nil, titleTextAlign: .left, subtitleFont: nil, subtitleColor: nil, subtitleTextAlign: nil, leftView: imageView, rightView: nil, style: .danger, colors: nil, iconPosition: .center)
|
|
|
+ banner.show()
|
|
|
+ return
|
|
|
+ } else if type == "6" && groups.count == 0 {
|
|
|
+ let imageView = UIImageView(image: UIImage(systemName: "xmark.circle.fill"))
|
|
|
+ imageView.tintColor = .white
|
|
|
+ let banner = FloatingNotificationBanner(title: "Please select at least 1 group".localized(), subtitle: nil, titleFont: UIFont.systemFont(ofSize: 16), titleColor: nil, titleTextAlign: .left, subtitleFont: nil, subtitleColor: nil, subtitleTextAlign: nil, leftView: imageView, rightView: nil, style: .danger, colors: nil, iconPosition: .center)
|
|
|
+ banner.show()
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
data["groups"] = groups
|
|
|
data["members"] = members
|
|
|
data["type"] = type
|