Merge branch 'bugfix/notificationEnhancements' into 'develop'
Removed layout support for iPad devices See merge request BPHV_MIPS/vds_ios_sample!57
This commit is contained in:
commit
75207cbe40
@ -29,10 +29,6 @@ class NotificationViewController: BaseViewController<VDS.Notification> {
|
|||||||
items: Notification.Style.allCases)
|
items: Notification.Style.allCases)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
lazy var layoutTypePickerSelectorView = {
|
|
||||||
PickerSelectorView(title: "vertical", picker: self.picker, items: Notification.Layout.allCases)
|
|
||||||
}()
|
|
||||||
|
|
||||||
var notification = Notification()
|
var notification = Notification()
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
@ -60,7 +56,6 @@ 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: "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)
|
||||||
@ -138,15 +133,6 @@ class NotificationViewController: BaseViewController<VDS.Notification> {
|
|||||||
self.component.style = item
|
self.component.style = item
|
||||||
self.notification.style = item
|
self.notification.style = item
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
func setupButtons(with firstButtonText: String? = nil, secondButtonText: String? = nil) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user