|
9 | 9 | import SwiftUI
|
10 | 10 |
|
11 | 11 | public extension KeyPath where Root == NSMutableParagraphStyle {
|
12 |
| - |
| 12 | + |
13 | 13 | /// Get default picker values for the key path.
|
14 | 14 | var defaultPickerValues: [Value]? {
|
15 | 15 | switch self {
|
@@ -37,63 +37,63 @@ public extension KeyPath where Root == NSMutableParagraphStyle {
|
37 | 37 | }
|
38 | 38 |
|
39 | 39 | public extension NSLineBreakMode {
|
40 |
| - |
| 40 | + |
41 | 41 | /// Get the default picker values.
|
42 | 42 | static var defaultPickerValues: [Self] {
|
43 | 43 | .defaultPickerValues
|
44 | 44 | }
|
45 | 45 | }
|
46 | 46 |
|
47 | 47 | public extension Collection where Element == NSLineBreakMode {
|
48 |
| - |
| 48 | + |
49 | 49 | /// Get the default picker values.
|
50 | 50 | static var defaultPickerValues: [Element] {
|
51 | 51 | [.byWordWrapping, .byCharWrapping, .byClipping, .byTruncatingHead, .byTruncatingTail, .byTruncatingMiddle]
|
52 | 52 | }
|
53 | 53 | }
|
54 | 54 |
|
55 | 55 | public extension NSParagraphStyle.LineBreakStrategy {
|
56 |
| - |
| 56 | + |
57 | 57 | /// Get the default picker values.
|
58 | 58 | static var defaultPickerValues: [Self] {
|
59 | 59 | .defaultPickerValues
|
60 | 60 | }
|
61 | 61 | }
|
62 | 62 |
|
63 | 63 | public extension Collection where Element == NSParagraphStyle.LineBreakStrategy {
|
64 |
| - |
| 64 | + |
65 | 65 | /// Get the default picker values.
|
66 | 66 | static var defaultPickerValues: [Element] {
|
67 | 67 | [.standard, .pushOut, .hangulWordPriority]
|
68 | 68 | }
|
69 | 69 | }
|
70 | 70 |
|
71 | 71 | public extension NSTextAlignment {
|
72 |
| - |
| 72 | + |
73 | 73 | /// Get the default picker values.
|
74 | 74 | static var defaultPickerValues: [Self] {
|
75 | 75 | .defaultPickerValues
|
76 | 76 | }
|
77 | 77 | }
|
78 | 78 |
|
79 | 79 | public extension Collection where Element == NSTextAlignment {
|
80 |
| - |
| 80 | + |
81 | 81 | /// Get the default picker values.
|
82 | 82 | static var defaultPickerValues: [Element] {
|
83 | 83 | [.left, .center, .right, .justified]
|
84 | 84 | }
|
85 | 85 | }
|
86 | 86 |
|
87 | 87 | public extension NSWritingDirection {
|
88 |
| - |
| 88 | + |
89 | 89 | /// Get the default picker values.
|
90 | 90 | static var defaultPickerValues: [Self] {
|
91 | 91 | .defaultPickerValues
|
92 | 92 | }
|
93 | 93 | }
|
94 | 94 |
|
95 | 95 | public extension Collection where Element == NSWritingDirection {
|
96 |
| - |
| 96 | + |
97 | 97 | /// Get the default picker values.
|
98 | 98 | static var defaultPickerValues: [Element] {
|
99 | 99 | [.leftToRight, .rightToLeft]
|
|
0 commit comments