File tree Expand file tree Collapse file tree 4 files changed +10
-8
lines changed
Sources/CombineNavigation/Destinations
Tests/CombineNavigationTests/Destinations Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,14 @@ open class StackDestination<
11
11
Controller: CocoaViewController
12
12
> : Weakifiable {
13
13
private var _controllers : [ StackElementID : Weak < Controller > ] = [ : ]
14
- public var wrappedValue : [ StackElementID : Controller ] {
14
+
15
+ open var wrappedValue : [ StackElementID : Controller ] {
15
16
let controllers = _controllers. compactMapValues ( \. wrappedValue)
16
17
_controllers = controllers. mapValues ( Weak . init ( wrappedValue: ) )
17
18
return controllers
18
19
}
19
- public var projectedValue : StackDestination < StackElementID , Controller > { self }
20
+
21
+ open var projectedValue : StackDestination < StackElementID , Controller > { self }
20
22
21
23
private var _initControllerOverride : ( ( StackElementID ) -> Controller ) ?
22
24
@@ -45,7 +47,7 @@ open class StackDestination<
45
47
}
46
48
}
47
49
48
- @_spi ( Internals) public class func initController(
50
+ @_spi ( Internals) open class func initController(
49
51
for id: StackElementID
50
52
) -> Controller {
51
53
return Controller ( )
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ import FoundationExtensions
8
8
@propertyWrapper
9
9
open class TreeDestination < Controller: CocoaViewController > : Weakifiable {
10
10
private weak var _controller : Controller ?
11
- public var wrappedValue : Controller ? { _controller }
12
- public var projectedValue : TreeDestination < Controller > { self }
11
+ open var wrappedValue : Controller ? { _controller }
12
+ open var projectedValue : TreeDestination < Controller > { self }
13
13
14
14
private var _initControllerOverride : ( ( ) -> Controller ) ?
15
15
@@ -36,7 +36,7 @@ open class TreeDestination<Controller: CocoaViewController>: Weakifiable {
36
36
}
37
37
}
38
38
39
- @_spi ( Internals) public class func initController( ) -> Controller {
39
+ @_spi ( Internals) open class func initController( ) -> Controller {
40
40
return Controller ( )
41
41
}
42
42
Original file line number Diff line number Diff line change 1
1
import XCTest
2
2
import CocoaAliases
3
- @_spi ( Internals) @ testable import CombineNavigation
3
+ @_spi ( Internals) import CombineNavigation
4
4
5
5
#if canImport(UIKit) && !os(watchOS)
6
6
final class StackDestinationTests : XCTestCase {
Original file line number Diff line number Diff line change 1
1
import XCTest
2
2
import CocoaAliases
3
- @_spi ( Internals) @ testable import CombineNavigation
3
+ @_spi ( Internals) import CombineNavigation
4
4
5
5
#if canImport(UIKit) && !os(watchOS)
6
6
final class TreeDestinationTests : XCTestCase {
You can’t perform that action at this time.
0 commit comments