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