updated samples
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
726ece2bf4
commit
3301a08ac7
@ -15,28 +15,29 @@ class BreadcrumbsViewController: BaseViewController<Breadcrumbs> {
|
|||||||
|
|
||||||
var selectedSwitch = Toggle()
|
var selectedSwitch = Toggle()
|
||||||
var sampleSwitch = Toggle()
|
var sampleSwitch = Toggle()
|
||||||
|
var line = Line()
|
||||||
var selectedCrumbLabel = Label().with { $0.textStyle = .boldBodyMedium }
|
var selectedCrumbLabel = Label().with { $0.textStyle = .boldBodyMedium }
|
||||||
|
|
||||||
var allBreadcrumbs: [Breadcrumbs.BreadcrumbItemModel] = [
|
var allBreadcrumbs: [Breadcrumbs.BreadcrumbItemModel] = [
|
||||||
.init(text: "Home", link: "https://www.verizon.com/"),
|
.init(text: "Home"),
|
||||||
.init(text: "Support", link: "https://www.verizon.com/"),
|
.init(text: "Support", enabeled: false),
|
||||||
.init(text: "Servie & Apps", link: "https://www.verizon.com/"),
|
.init(text: "Servie & Apps"),
|
||||||
.init(text: "My Verizon", link: "https://www.verizon.com/"),
|
.init(text: "My Verizon"),
|
||||||
.init(text: "Bill", link: "https://www.verizon.com/"),
|
.init(text: "Bill"),
|
||||||
.init(text: "Mobile Billing & Payments", link: "https://www.verizon.com/"),
|
.init(text: "Mobile Billing & Payments"),
|
||||||
.init(text: "Billing statement FAQs", link: "https://www.verizon.com/", isSelected: true)
|
.init(text: "Billing statement FAQs", selected: true)
|
||||||
]
|
]
|
||||||
|
|
||||||
var some: [Breadcrumbs.BreadcrumbItemModel] = [
|
var some: [Breadcrumbs.BreadcrumbItemModel] = [
|
||||||
.init(text: "Plans", link: "https://www.verizon.com/"),
|
.init(text: "Plans"),
|
||||||
.init(text: "Upgrade Plan", link: "https://www.verizon.com/", isSelected: true)
|
.init(text: "Upgrade Plan"),
|
||||||
|
.init(text: "Billing Statement Frequently Asked Questions About Stuff You don't want to see", selected: true)
|
||||||
]
|
]
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
let stack = UIStackView(arrangedSubviews: [component, selectedCrumbLabel]).with {
|
let stack = UIStackView(arrangedSubviews: [component, selectedCrumbLabel]).with {
|
||||||
$0.axis = .vertical
|
$0.axis = .vertical
|
||||||
$0.spacing = 4
|
$0.spacing = 25
|
||||||
}
|
}
|
||||||
addContentTopView(view: stack)
|
addContentTopView(view: stack)
|
||||||
setupPicker()
|
setupPicker()
|
||||||
@ -66,6 +67,8 @@ class BreadcrumbsViewController: BaseViewController<Breadcrumbs> {
|
|||||||
surfacePickerSelectorView.onPickerDidSelect = { [weak self] item in
|
surfacePickerSelectorView.onPickerDidSelect = { [weak self] item in
|
||||||
self?.component.surface = item
|
self?.component.surface = item
|
||||||
self?.contentTopView.backgroundColor = item.color
|
self?.contentTopView.backgroundColor = item.color
|
||||||
|
self?.line.surface = item
|
||||||
|
self?.selectedCrumbLabel.surface = item
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user