File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
Sources/SwiftWin32/Menus and Shortcuts Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 4
4
extension ContextMenuInteraction {
5
5
/// Constants that describe the appearance of the menu.
6
6
public enum Appearance : Int {
7
- /// No menu appearance.
8
- case unknown
7
+ /// No menu appearance.
8
+ case unknown
9
9
10
- /// A modal menu with an optional preview.
11
- case rich
10
+ /// A modal menu with an optional preview.
11
+ case rich
12
12
13
- /// A nonmodal, compact menu with no preview.
14
- case compact
13
+ /// A nonmodal, compact menu with no preview.
14
+ case compact
15
15
}
16
16
}
17
17
18
+ /// An interaction object that you use to display relevant actions for your
19
+ /// content.
18
20
public class ContextMenuInteraction : Interaction {
19
21
// MARK - Creating a Context Menu Interaction Object
20
22
@@ -30,9 +32,10 @@ public class ContextMenuInteraction: Interaction {
30
32
/// and responds to interaction-related events.
31
33
public private( set) weak var delegate : ContextMenuInteractionDelegate ?
32
34
33
- public private( set) var view : View ? = nil
35
+ public private( set) weak var view : View ?
34
36
35
- public func willMove( to view: View ? ) { }
37
+ public func willMove( to view: View ? ) {
38
+ }
36
39
37
40
public func didMove( to view: View ? ) {
38
41
self . view = view
You can’t perform that action at this time.
0 commit comments