Skip to content

Commit 742432c

Browse files
committed
Menus and Shortcuts: open MenuElement
`MenuElement` should be an `open` class so that users may subclass the `MenuElement` type for implementing custom accessors.
1 parent 5255beb commit 742432c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SwiftWin32/Menus and Shortcuts/MenuElement.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ extension MenuElement {
4949
}
5050

5151
/// An object representing a menu, action, or command.
52-
public class MenuElement {
52+
open class MenuElement {
5353
// MARK - Getting the Element Attributes
5454

5555
/// The title of the menu element.
56-
public internal(set) var title: String
56+
open internal(set) var title: String
5757

5858
/// The image to display alongside the menu element's title.
59-
public internal(set) var image: Image?
59+
open internal(set) var image: Image?
6060

6161
// MARK - Creating a Menu Element
6262

0 commit comments

Comments
 (0)