refactored naming of Footnote to FootnoteItem
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
1922791580
commit
adb30de38c
@ -38,7 +38,7 @@
|
||||
183B16F52C80B27C00BA6A10 /* FootnoteGroupViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 183B16F42C80B27C00BA6A10 /* FootnoteGroupViewController.swift */; };
|
||||
184023492C61E9E700A412C8 /* PriceLockupViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 184023482C61E9E700A412C8 /* PriceLockupViewController.swift */; };
|
||||
186D13CD2BBA990800986B53 /* DropdownSelectViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 186D13CC2BBA990800986B53 /* DropdownSelectViewController.swift */; };
|
||||
18926F5F2C76185A00C55BF6 /* FootnoteViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18926F5E2C76185A00C55BF6 /* FootnoteViewController.swift */; };
|
||||
18926F5F2C76185A00C55BF6 /* FootnoteItemViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18926F5E2C76185A00C55BF6 /* FootnoteItemViewController.swift */; };
|
||||
18A3F1302BD9332500498E4A /* CalendarViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18A3F12F2BD9332500498E4A /* CalendarViewController.swift */; };
|
||||
18AE87522C06FDD60075F181 /* CarouselViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18AE87512C06FDD60075F181 /* CarouselViewController.swift */; };
|
||||
440B84CC2BD8E98B004A732A /* TableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 440B84CB2BD8E98B004A732A /* TableViewController.swift */; };
|
||||
@ -140,7 +140,7 @@
|
||||
183B16F42C80B27C00BA6A10 /* FootnoteGroupViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FootnoteGroupViewController.swift; sourceTree = "<group>"; };
|
||||
184023482C61E9E700A412C8 /* PriceLockupViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PriceLockupViewController.swift; sourceTree = "<group>"; };
|
||||
186D13CC2BBA990800986B53 /* DropdownSelectViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DropdownSelectViewController.swift; sourceTree = "<group>"; };
|
||||
18926F5E2C76185A00C55BF6 /* FootnoteViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FootnoteViewController.swift; sourceTree = "<group>"; };
|
||||
18926F5E2C76185A00C55BF6 /* FootnoteItemViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FootnoteItemViewController.swift; sourceTree = "<group>"; };
|
||||
18A3F12F2BD9332500498E4A /* CalendarViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CalendarViewController.swift; sourceTree = "<group>"; };
|
||||
18AE87512C06FDD60075F181 /* CarouselViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CarouselViewController.swift; sourceTree = "<group>"; };
|
||||
440B84CB2BD8E98B004A732A /* TableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TableViewController.swift; sourceTree = "<group>"; };
|
||||
@ -345,7 +345,7 @@
|
||||
EA0D1C2E2A66CFE900E5C127 /* CheckboxViewController.swift */,
|
||||
EA1758452BC8893700A5C0D9 /* DatePickerViewController.swift */,
|
||||
186D13CC2BBA990800986B53 /* DropdownSelectViewController.swift */,
|
||||
18926F5E2C76185A00C55BF6 /* FootnoteViewController.swift */,
|
||||
18926F5E2C76185A00C55BF6 /* FootnoteItemViewController.swift */,
|
||||
183B16F42C80B27C00BA6A10 /* FootnoteGroupViewController.swift */,
|
||||
EA985C00296CC21C00F2FF2E /* IconViewController.swift */,
|
||||
180636CA2C29B12B00C92D86 /* InputStepperViewController.swift */,
|
||||
@ -574,7 +574,7 @@
|
||||
EA985C20296DECF600F2FF2E /* IconName.swift in Sources */,
|
||||
EA89204928B66CE2006B9984 /* KeyboardFrameChangeListening.swift in Sources */,
|
||||
EA5F86CE2A1E863F00BC83E4 /* TabsContainerViewController.swift in Sources */,
|
||||
18926F5F2C76185A00C55BF6 /* FootnoteViewController.swift in Sources */,
|
||||
18926F5F2C76185A00C55BF6 /* FootnoteItemViewController.swift in Sources */,
|
||||
EA985C01296CC21C00F2FF2E /* IconViewController.swift in Sources */,
|
||||
184023492C61E9E700A412C8 /* PriceLockupViewController.swift in Sources */,
|
||||
EAC9258029119FC400091998 /* TextLinkViewController.swift in Sources */,
|
||||
|
||||
@ -13,7 +13,7 @@ class FootnoteGroupViewController: BaseViewController<FootnoteGroup> {
|
||||
|
||||
var widthTextField = NumericField()
|
||||
var percentageTextField = NumericField()
|
||||
var footnotes: [Footnote] = []
|
||||
var footnotes: [FootnoteItem] = []
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
@ -54,9 +54,9 @@ class FootnoteGroupViewController: BaseViewController<FootnoteGroup> {
|
||||
|
||||
func setupModel() {
|
||||
let toolTipModel = Tooltip.TooltipModel.init(title: "Check your item.", content:"Here is the content for your item.")
|
||||
footnotes.append(Footnote().with { $0.text = "Offer you best deals on phones, tablets, home, internet and more. Pre order the new version mobiles and get off *T&C apply."; $0.symbolType = "*"; $0.kind = .primary; $0.tooltipModel = toolTipModel})
|
||||
footnotes.append(Footnote().with { $0.text = "The display has rounded corners. When measured as a standard rectangular shape, the screen is 6.68 inches diagonally. Actual viewable area is less."; $0.symbolType = "**"; $0.kind = .primary})
|
||||
footnotes.append(Footnote().with { $0.text = " Some features may not be available for all countries or all areas."; $0.symbolType = "1."; $0.kind = .primary})
|
||||
footnotes.append(.init().with { $0.text = "Offer you best deals on phones, tablets, home, internet and more. Pre order the new version mobiles and get off *T&C apply."; $0.symbolType = "*"; $0.kind = .primary; $0.tooltipModel = toolTipModel})
|
||||
footnotes.append(.init().with { $0.text = "The display has rounded corners. When measured as a standard rectangular shape, the screen is 6.68 inches diagonally. Actual viewable area is less."; $0.symbolType = "**"; $0.kind = .primary})
|
||||
footnotes.append(.init().with { $0.text = "Some features may not be available for all countries or all areas."; $0.symbolType = "1."; $0.kind = .primary})
|
||||
component.footnoteItems = footnotes
|
||||
}
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ import Foundation
|
||||
import UIKit
|
||||
import VDS
|
||||
|
||||
class FootnoteViewController: BaseViewController<Footnote> {
|
||||
class FootnoteItemViewController: BaseViewController<FootnoteItem> {
|
||||
|
||||
internal enum SymbolType: String, DefaultValuing, CaseIterable {
|
||||
case asterisk
|
||||
@ -37,7 +37,7 @@ class FootnoteViewController: BaseViewController<Footnote> {
|
||||
lazy var kindPickerSelectorView = {
|
||||
PickerSelectorView(title: "secondary",
|
||||
picker: self.picker,
|
||||
items: Footnote.Kind.allCases)
|
||||
items: FootnoteItem.Kind.allCases)
|
||||
}()
|
||||
|
||||
lazy var symbolTypePickerSelectorView = {
|
||||
@ -49,7 +49,7 @@ class FootnoteViewController: BaseViewController<Footnote> {
|
||||
lazy var sizePickerSelectorView = {
|
||||
PickerSelectorView(title: "micro",
|
||||
picker: self.picker,
|
||||
items: Footnote.Size.allCases)
|
||||
items: FootnoteItem.Size.allCases)
|
||||
}()
|
||||
|
||||
var footnoteTextField = TextField()
|
||||
@ -82,7 +82,7 @@ class MenuViewController: UITableViewController, TooltipLaunchable {
|
||||
MenuComponent(title: "CheckboxGroup", completed: true, viewController: CheckboxGroupViewController.self),
|
||||
MenuComponent(title: "DatePicker", completed: true, viewController: DatePickerViewController.self),
|
||||
MenuComponent(title: "DropdownSelect", completed: true, viewController: DropdownSelectViewController.self),
|
||||
MenuComponent(title: "Footnote", completed: false, viewController: FootnoteViewController.self),
|
||||
MenuComponent(title: "FootnoteItem", completed: false, viewController: FootnoteItemViewController.self),
|
||||
MenuComponent(title: "FootnoteGroup", completed: false, viewController: FootnoteGroupViewController.self),
|
||||
MenuComponent(title: "Icon", completed: true, viewController: IconViewController.self),
|
||||
MenuComponent(title: "InputField", completed: true, viewController: InputFieldViewController.self),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user