123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- import UIKit
- open class ActionSheetAppearance {
-
-
-
-
- public init() {}
-
- public init(copy: ActionSheetAppearance) {
- cornerRadius = copy.cornerRadius
- contentInset = copy.contentInset
- groupMargins = copy.groupMargins
-
- backgroundColor = copy.backgroundColor
- separatorColor = copy.separatorColor
- itemsBackgroundColor = copy.itemsBackgroundColor ?? backgroundColor
- itemsSeparatorColor = copy.itemsSeparatorColor ?? separatorColor
- buttonsSeparatorColor = copy.buttonsSeparatorColor ?? backgroundColor
- buttonsSeparatorColor = copy.buttonsSeparatorColor ?? separatorColor
-
- popover = ActionSheetPopoverAppearance(copy: copy.popover)
-
- item = ActionSheetItemAppearance(copy: copy.item)
- collectionItem = ActionSheetCollectionItemAppearance(copy: copy.collectionItem)
- customItem = ActionSheetCustomItemAppearance(copy: copy.customItem)
- linkItem = ActionSheetLinkItemAppearance(copy: copy.linkItem)
- multiSelectItem = ActionSheetMultiSelectItemAppearance(copy: copy.multiSelectItem)
- multiSelectToggleItem = ActionSheetMultiSelectToggleItemAppearance(copy: copy.multiSelectToggleItem)
- selectItem = ActionSheetSelectItemAppearance(copy: copy.selectItem)
- singleSelectItem = ActionSheetSingleSelectItemAppearance(copy: copy.singleSelectItem)
-
- cancelButton = ActionSheetCancelButtonAppearance(copy: copy.cancelButton)
- dangerButton = ActionSheetDangerButtonAppearance(copy: copy.dangerButton)
- okButton = ActionSheetOkButtonAppearance(copy: copy.okButton)
-
- sectionMargin = ActionSheetSectionMarginAppearance(copy: copy.sectionMargin)
- sectionTitle = ActionSheetSectionTitleAppearance(copy: copy.sectionTitle)
- title = ActionSheetTitleAppearance(copy: copy.title)
- }
-
-
-
-
- public var cornerRadius: CGFloat = 10
- public var contentInset: CGFloat = 15
- public var groupMargins: CGFloat = 15
-
- public var backgroundColor: UIColor?
- public var separatorColor: UIColor?
- public var itemsBackgroundColor: UIColor?
- public var itemsSeparatorColor: UIColor?
- public var buttonsBackgroundColor: UIColor?
- public var buttonsSeparatorColor: UIColor?
-
-
-
-
- public static var standard = ActionSheetAppearance()
-
- public lazy var popover = ActionSheetPopoverAppearance(width: 300)
-
-
-
-
- public lazy var item = ActionSheetItemAppearance()
- public lazy var collectionItem = ActionSheetCollectionItemAppearance(copy: item)
- public lazy var customItem = ActionSheetCustomItemAppearance(copy: item)
- public lazy var linkItem = ActionSheetLinkItemAppearance(copy: item)
- public lazy var multiSelectItem = ActionSheetMultiSelectItemAppearance(copy: selectItem)
- public lazy var multiSelectToggleItem = ActionSheetMultiSelectToggleItemAppearance(copy: item)
- public lazy var selectItem = ActionSheetSelectItemAppearance(copy: item)
- public lazy var singleSelectItem = ActionSheetSingleSelectItemAppearance(copy: selectItem)
-
-
-
-
- public lazy var cancelButton = ActionSheetCancelButtonAppearance(copy: item)
- public lazy var dangerButton = ActionSheetDangerButtonAppearance(copy: item)
- public lazy var okButton = ActionSheetOkButtonAppearance(copy: item)
-
-
-
-
- public lazy var sectionMargin = ActionSheetSectionMarginAppearance(copy: item)
- public lazy var sectionTitle = ActionSheetSectionTitleAppearance(copy: item)
- public lazy var title = ActionSheetTitleAppearance(copy: item)
- }
|