refactored code for changes
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
36761e50cb
commit
520eec8b8d
@ -138,7 +138,7 @@ class BadgeIndicatorViewController: BaseViewController<BadgeIndicator> {
|
|||||||
horizontalPaddingTextField
|
horizontalPaddingTextField
|
||||||
.numberPublisher
|
.numberPublisher
|
||||||
.sink { [weak self] number in
|
.sink { [weak self] number in
|
||||||
self?.component.horitonalPadding = number?.cgFloatValue
|
self?.component.horizontalPadding = number?.cgFloatValue
|
||||||
}.store(in: &subscribers)
|
}.store(in: &subscribers)
|
||||||
|
|
||||||
verticalPaddingTextField
|
verticalPaddingTextField
|
||||||
|
|||||||
@ -286,7 +286,7 @@ public class BaseViewController<Component: UIView>: UIViewController, Initable ,
|
|||||||
open func addContentTopView(view: UIView, edgeSpacing: CGFloat = 16.0) {
|
open func addContentTopView(view: UIView, edgeSpacing: CGFloat = 16.0) {
|
||||||
view.translatesAutoresizingMaskIntoConstraints = false
|
view.translatesAutoresizingMaskIntoConstraints = false
|
||||||
contentTopView.addSubview(view)
|
contentTopView.addSubview(view)
|
||||||
view.pinToSuperView(.init(top: edgeSpacing, left: edgeSpacing, bottom: edgeSpacing, right: edgeSpacing))
|
view.pinToSuperView(.uniform(edgeSpacing))
|
||||||
}
|
}
|
||||||
|
|
||||||
open func append(section: FormSection) {
|
open func append(section: FormSection) {
|
||||||
|
|||||||
@ -77,7 +77,7 @@ class MenuViewController: UITableViewController, TooltipLaunchable {
|
|||||||
MenuComponent(title: "CheckboxItem", completed: true, viewController: CheckboxItemViewController.self),
|
MenuComponent(title: "CheckboxItem", completed: true, viewController: CheckboxItemViewController.self),
|
||||||
MenuComponent(title: "CheckboxGroup", completed: true, viewController: CheckboxGroupViewController.self),
|
MenuComponent(title: "CheckboxGroup", completed: true, viewController: CheckboxGroupViewController.self),
|
||||||
MenuComponent(title: "Icon", completed: true, viewController: IconViewController.self),
|
MenuComponent(title: "Icon", completed: true, viewController: IconViewController.self),
|
||||||
// MenuComponent(title: "InputField", completed: false, viewController: InputFieldViewController.self),
|
MenuComponent(title: "InputField", completed: false, viewController: InputFieldViewController.self),
|
||||||
MenuComponent(title: "Label", completed: true, viewController: LabelViewController.self),
|
MenuComponent(title: "Label", completed: true, viewController: LabelViewController.self),
|
||||||
MenuComponent(title: "Line", completed: true, viewController: LineViewController.self),
|
MenuComponent(title: "Line", completed: true, viewController: LineViewController.self),
|
||||||
MenuComponent(title: "Loader", completed: true, viewController: LoaderViewController.self),
|
MenuComponent(title: "Loader", completed: true, viewController: LoaderViewController.self),
|
||||||
@ -88,10 +88,10 @@ class MenuViewController: UITableViewController, TooltipLaunchable {
|
|||||||
MenuComponent(title: "RadioButtonGroup", completed: true, viewController: RadioButtonGroupViewController.self),
|
MenuComponent(title: "RadioButtonGroup", completed: true, viewController: RadioButtonGroupViewController.self),
|
||||||
// //MenuComponent(title: "TabsContainer", completed: false, viewController: TabsContainerViewController.self),
|
// //MenuComponent(title: "TabsContainer", completed: false, viewController: TabsContainerViewController.self),
|
||||||
MenuComponent(title: "Tabs", completed: true, viewController: TabsViewController.self),
|
MenuComponent(title: "Tabs", completed: true, viewController: TabsViewController.self),
|
||||||
// MenuComponent(title: "TextArea", completed: false, viewController: TextAreaViewController.self),
|
MenuComponent(title: "TextArea", completed: false, viewController: TextAreaViewController.self),
|
||||||
MenuComponent(title: "TextLink", completed: true, viewController: TextLinkViewController.self),
|
MenuComponent(title: "TextLink", completed: true, viewController: TextLinkViewController.self),
|
||||||
MenuComponent(title: "TextLinkCaret", completed: true, viewController: TextLinkCaretViewController.self),
|
MenuComponent(title: "TextLinkCaret", completed: true, viewController: TextLinkCaretViewController.self),
|
||||||
MenuComponent(title: "TileContainer", completed: false, viewController: TileContainerViewController.self),
|
MenuComponent(title: "TileContainer", completed: false, viewController: TileContainerViewController.self),
|
||||||
MenuComponent(title: "Tilelet", completed: false, viewController: TileletViewController.self),
|
MenuComponent(title: "Tilelet", completed: false, viewController: TileletViewController.self),
|
||||||
MenuComponent(title: "TitleLockup", completed: true, viewController: TitleLockupViewController.self),
|
MenuComponent(title: "TitleLockup", completed: true, viewController: TitleLockupViewController.self),
|
||||||
MenuComponent(title: "Toggle", completed: true, viewController: ToggleViewController.self),
|
MenuComponent(title: "Toggle", completed: true, viewController: ToggleViewController.self),
|
||||||
|
|||||||
@ -215,7 +215,7 @@ extension TableViewTestController : UITableViewDelegate, UITableViewDataSource {
|
|||||||
|
|
||||||
let cell = UITableViewCell()
|
let cell = UITableViewCell()
|
||||||
cell.contentView.addSubview(component)
|
cell.contentView.addSubview(component)
|
||||||
sample.pin(edgeInset: .init(top: 16, left: 16, bottom: 16, right: 16))
|
sample.pin(edgeInset: .uniform(16))
|
||||||
cell.backgroundColor = surface.color
|
cell.backgroundColor = surface.color
|
||||||
cell.layoutIfNeeded()
|
cell.layoutIfNeeded()
|
||||||
return cell
|
return cell
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user