1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import UIKit
- import Sheeeeeeeeet
- extension ActionSheetAppearance {
-
- static var demoColorful: ActionSheetAppearance {
- NCAppearance()
- }
- }
- class NCAppearance: ActionSheetAppearance {
- override func applyColors() {
-
- ActionSheetTableView.appearance().backgroundColor = NCBrandColor.sharedInstance.backgroundForm
- ActionSheetTableView.appearance().separatorColor = NCBrandColor.sharedInstance.separator
- ActionSheetItemCell.appearance().backgroundColor = NCBrandColor.sharedInstance.backgroundForm
- ActionSheetItemCell.appearance().titleColor = NCBrandColor.sharedInstance.textView
- }
- }
- class ActionSheetDeleteItem: ActionSheetItem {
- override open func cell(for tableView: UITableView) -> ActionSheetItemCell {
- return ActionSheetDeleteItemCell(style: cellStyle, reuseIdentifier: cellReuseIdentifier)
- }
- }
- class ActionSheetDeleteItemCell: ActionSheetItemCell {}
|