File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change 1
1
# swift-foundation-extensions
2
2
3
- [ ![ SwiftPM 5.9
] ( https://img.shields.io/badge/swiftpm-5.9-ED523F.svg?style=flat )] ( https://swift.org/download/ ) ![ Platforms
] ( https://img.shields.io/badge/Platforms-iOS_13_|_macOS_10.15_|_tvOS_14_|_watchOS_7-ED523F.svg?style=flat ) [ ![ @capture_context
] ( https://img.shields.io/badge/[email protected] ?style=flat&logo=twitter )] ( https://twitter.com/capture_context )
3
+ [ ![ CI ] ( https://github.com/CaptureContext/swift-foundation-extensions/actions/workflows/ci.yml/badge.svg )] ( https://github.com/CaptureContext/swift-foundation-extensions/actions/workflows/ci.yml ) [ ![ SwiftPM 5.9
] ( https://img.shields.io/badge/swiftpm-5.9-ED523F.svg?style=flat )] ( https://swift.org/download/ ) ![ Platforms
] ( https://img.shields.io/badge/Platforms-iOS_13_|_macOS_10.15_|_tvOS_14_|_watchOS_7-ED523F.svg?style=flat ) [ ![ @capture_context
] ( https://img.shields.io/badge/[email protected] ?style=flat&logo=twitter )] ( https://twitter.com/capture_context )
4
4
5
5
Standard extensions for Foundation framework
6
6
7
- Macros: [ ` swift-foundation-extensions-macros ` ] ( https://github.com/capturecontext/swift-foundation-extensions-macros )
8
-
9
7
- [ Documentation] ( https://swiftpackageindex.com/CaptureContext/swift-foundation-extensions/0.5.0/documentation/foundationextensions )
10
8
- [ Contents] ( #contents )
11
9
- [ Coding] ( #coding )
@@ -86,6 +84,17 @@ state.redo() // value == 2
86
84
87
85
CoW container, which allows you to recursively include single instances of value types
88
86
87
+ ``` swift
88
+ struct ListNode <Value > {
89
+ var value: Value
90
+
91
+ @Indirect
92
+ var next: ListNode<Value >?
93
+ }
94
+ ```
95
+
96
+
97
+
89
98
### PropertyProxy
90
99
91
100
``` swift
@@ -177,16 +186,6 @@ extension UIViewController {
177
186
)
178
187
}()
179
188
180
- // Swizzle automatically when the first
181
- // navigationController loads it's view
182
- // for some classes you may have to make `swizzle`
183
- // handle public and trigger it in the beginning
184
- // of your app's lifetime (ex: in AppDelegate)
185
- open override func loadView () {
186
- UIViewController.swizzle
187
- super .viewDidLoad ()
188
- }
189
-
190
189
@objc dynamic
191
190
private func __swizzledViewWillAppear (_ animated : Bool ) {
192
191
__swizzledViewWillAppear (animated) // calls original method
You can’t perform that action at this time.
0 commit comments