removed layout support
This commit is contained in:
parent
a5f2116470
commit
890ce25f71
@ -29,9 +29,9 @@ class NotificationViewController: BaseViewController<VDS.Notification> {
|
|||||||
items: Notification.Style.allCases)
|
items: Notification.Style.allCases)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
lazy var layoutTypePickerSelectorView = {
|
// lazy var layoutTypePickerSelectorView = {
|
||||||
PickerSelectorView(title: "vertical", picker: self.picker, items: Notification.Layout.allCases)
|
// PickerSelectorView(title: "vertical", picker: self.picker, items: Notification.Layout.allCases)
|
||||||
}()
|
// }()
|
||||||
|
|
||||||
var notification = Notification()
|
var notification = Notification()
|
||||||
|
|
||||||
@ -60,7 +60,7 @@ class NotificationViewController: BaseViewController<VDS.Notification> {
|
|||||||
super.setupForm()
|
super.setupForm()
|
||||||
addFormRow(label: "Surface", view: surfacePickerSelectorView)
|
addFormRow(label: "Surface", view: surfacePickerSelectorView)
|
||||||
addFormRow(label: "Style", view: notificationTypePickerSelectorView)
|
addFormRow(label: "Style", view: notificationTypePickerSelectorView)
|
||||||
addFormRow(label: "Layout", view: layoutTypePickerSelectorView)
|
// addFormRow(label: "Layout", view: layoutTypePickerSelectorView)
|
||||||
addFormRow(label: "Title", view: titleTextField)
|
addFormRow(label: "Title", view: titleTextField)
|
||||||
addFormRow(label: "SubTitle", view: subTitleTextField)
|
addFormRow(label: "SubTitle", view: subTitleTextField)
|
||||||
addFormRow(label: "Hide Button Group", view: buttonGroupToggle)
|
addFormRow(label: "Hide Button Group", view: buttonGroupToggle)
|
||||||
@ -139,14 +139,14 @@ class NotificationViewController: BaseViewController<VDS.Notification> {
|
|||||||
self.notification.style = item
|
self.notification.style = item
|
||||||
}
|
}
|
||||||
|
|
||||||
layoutTypePickerSelectorView.onPickerDidSelect = { [weak self] item in
|
/*layoutTypePickerSelectorView.onPickerDidSelect = { [weak self] item in
|
||||||
guard let self else { return }
|
guard let self else { return }
|
||||||
self.component.layout = item
|
self.component.layout = item
|
||||||
self.notification.layout = item
|
self.notification.layout = item
|
||||||
if self.component.layout != item {
|
if self.component.layout != item {
|
||||||
self.layoutTypePickerSelectorView.set(item: self.component.layout)
|
self.layoutTypePickerSelectorView.set(item: self.component.layout)
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
func setupButtons(with firstButtonText: String? = nil, secondButtonText: String? = nil) {
|
func setupButtons(with firstButtonText: String? = nil, secondButtonText: String? = nil) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user