Skip to content

Commit 3e95ce7

Browse files
committed
Menus and Shortcuts: stylistic changes (NFC)
Correct indentation, add a missing documentation comment, minor whitespace changes for text flow styling.
1 parent e23a86d commit 3e95ce7

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

Sources/SwiftWin32/Menus and Shortcuts/ContextMenuInteraction.swift

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,19 @@
44
extension ContextMenuInteraction {
55
/// Constants that describe the appearance of the menu.
66
public enum Appearance: Int {
7-
/// No menu appearance.
8-
case unknown
7+
/// No menu appearance.
8+
case unknown
99

10-
/// A modal menu with an optional preview.
11-
case rich
10+
/// A modal menu with an optional preview.
11+
case rich
1212

13-
/// A nonmodal, compact menu with no preview.
14-
case compact
13+
/// A nonmodal, compact menu with no preview.
14+
case compact
1515
}
1616
}
1717

18+
/// An interaction object that you use to display relevant actions for your
19+
/// content.
1820
public class ContextMenuInteraction: Interaction {
1921
// MARK - Creating a Context Menu Interaction Object
2022

@@ -30,9 +32,10 @@ public class ContextMenuInteraction: Interaction {
3032
/// and responds to interaction-related events.
3133
public private(set) weak var delegate: ContextMenuInteractionDelegate?
3234

33-
public private(set) var view: View? = nil
35+
public private(set) weak var view: View?
3436

35-
public func willMove(to view: View?) { }
37+
public func willMove(to view: View?) {
38+
}
3639

3740
public func didMove(to view: View?) {
3841
self.view = view

0 commit comments

Comments
 (0)