-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I customize some popovers UI properties, such as the shadow color of the menu #22
Comments
You can customize menus via the Templates.Menu(configuration: { /// <- here!
$0.shadow.color = .blue
$0.shadow.radius = 10
}) {
Templates.MenuButton(title: "Change Icon To List", systemImage: "list.bullet") {
iconName = "list.bullet"
}
Templates.MenuButton(title: "Change Icon To Keyboard", systemImage: "keyboard") {
iconName = "keyboard"
}
Templates.MenuButton(title: "Change Icon To Bag", systemImage: "bag") {
iconName = "bag"
}
} label: { fade in
ExampleRow(image: iconName, title: "Popovers Menu", color: 0x007eef)
.opacity(fade ? 0.5 : 1)
} Result: Here's a list of customizable attributes: Popovers/Sources/Templates/Menu.swift Lines 14 to 32 in 94647f2
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on the needs of the product manager to change, you need to modify the UI attribute parameters, how popovers need to be customized, whether to leak some attribute configuration inside and outside the package
。
The text was updated successfully, but these errors were encountered: