|
@@ -19,7 +19,7 @@ class NCMenuAction {
|
|
|
var selected: Bool = false
|
|
|
var isOn: Bool = false
|
|
|
var action: ((_ menuAction: NCMenuAction) -> Void)?
|
|
|
- var rowHeight: CGFloat { self.title == NCMenuAction.seperatorIdentifier ? 3 : self.details != nil ? 80 : 60 }
|
|
|
+ var rowHeight: CGFloat { self.title == NCMenuAction.seperatorIdentifier ? NCMenuAction.seperatorHeight : self.details != nil ? 80 : 60 }
|
|
|
|
|
|
init(title: String, details: String? = nil, icon: UIImage, action: ((_ menuAction: NCMenuAction) -> Void)?) {
|
|
|
self.title = title
|
|
@@ -45,7 +45,8 @@ class NCMenuAction {
|
|
|
// MARK: - Actions
|
|
|
|
|
|
extension NCMenuAction {
|
|
|
- static let seperatorIdentifier = "NCMenuAction.SEPERATOR"
|
|
|
+ static let seperatorIdentifier = "NCMenuAction.SEPARATOR"
|
|
|
+ static let seperatorHeight: CGFloat = 0.5
|
|
|
|
|
|
/// A static seperator, with no actions, text, or icons
|
|
|
static var seperator: NCMenuAction {
|