@@ -283,13 +283,14 @@ extension Menu.Options {
283
283
284
284
/// A container for grouping related menu elements in an application menu or
285
285
/// contextual menu.
286
- public class Menu : MenuElement {
286
+ open class Menu : MenuElement {
287
287
// MARK - Creating a Menu Object
288
288
289
289
/// Creates a new menu with the specified values.
290
- public init ( title: String = " " , image: Image ? = nil ,
291
- identifier: Menu . Identifier ? = nil , options: Menu . Options = [ ] ,
292
- children: [ MenuElement ] = [ ] ) {
290
+ public /*convenience*/ init ( title: String = " " , image: Image ? = nil ,
291
+ identifier: Menu . Identifier ? = nil ,
292
+ options: Menu . Options = [ ] ,
293
+ children: [ MenuElement ] = [ ] ) {
293
294
self . children = children
294
295
self . identifier = identifier ?? . generated
295
296
self . options = options
@@ -303,17 +304,17 @@ public class Menu: MenuElement {
303
304
304
305
/// Creates a new menu with the same configuration as the current menu, but
305
306
/// with a new set of child elements.
306
- public func replacingChildren( _ newChildren: [ MenuElement ] ) -> Menu {
307
+ open func replacingChildren( _ newChildren: [ MenuElement ] ) -> Menu {
307
308
fatalError ( " \( #function) not yet implemented " )
308
309
}
309
310
310
311
// MARK - Getting the Menu Details
311
312
312
313
/// The unique identifier for the current menu.
313
- public private( set) var identifier : Menu . Identifier
314
+ open private( set) var identifier : Menu . Identifier
314
315
315
316
/// The configuration options for the current menu.
316
- public private( set) var options : Menu . Options
317
+ open private( set) var options : Menu . Options
317
318
}
318
319
319
320
extension Menu : Equatable {
0 commit comments