BookActionsMenuDisplayConfig
public struct BookActionsMenuDisplayConfig
Configuration for book actions menu.
-
Book actions menu actions.
See moreDeclaration
Swift
public enum Action : Sendable
-
Undocumented
See moreDeclaration
Swift
public enum BackgroundStyle : Sendable
-
Actions to display in the menu.
Declaration
Swift
public var actions: [Action]
-
Style for the view behind the menu.
Declaration
Swift
public var backgroundStyle: BackgroundStyle
-
Radius for rounded menu corners.
Declaration
Swift
public var cornerRadius: CGFloat
-
Color for menu texts and icons.
Declaration
Swift
public var foregroundColor: UIColor
-
Color for menu texts and icons when item is disabled.
Declaration
Swift
public var foregroundColorDisabled: UIColor
-
Background color for the menu items.
Declaration
Swift
public var itemBackgroundColor: UIColor
-
Background color for the menu items in highlight state.
Declaration
Swift
public var itemBackgroundColorHighlight: UIColor
-
Font for the menu item titles.
Declaration
Swift
public var itemTitleFont: BooksFont
-
Color for the separator between the items.
Declaration
Swift
public var separatorColor: UIColor
-
init(actions:
backgroundStyle: cornerRadius: foregroundColor: foregroundColorDisabled: itemBackgroundColor: itemBackgroundColorHighlight: itemTitleFont: separatorColor: ) Undocumented
Declaration
Swift
public init( actions: [Action] = Action.defaultActions, backgroundStyle: BackgroundStyle = .blur(style: .dark, intensity: 1), cornerRadius: CGFloat = 10, foregroundColor: UIColor = .black, foregroundColorDisabled: UIColor = .lightGray, itemBackgroundColor: UIColor = .white, itemBackgroundColorHighlight: UIColor = .lightGray, itemTitleFont: BooksFont = BooksFont(style: .body, size: 15), separatorColor: UIColor = .gray )