Skip to content

Commit 13ee3dd

Browse files
authored
Mark runtime magic modules as @_implementationOnly (#48)
1 parent ddf90ae commit 13ee3dd

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Sources/NavigationTransitions/NavigationTransition+UIKit.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@_spi(package) import NavigationTransition
2-
import RuntimeAssociation
3-
import RuntimeSwizzling
2+
@_implementationOnly import RuntimeAssociation
3+
@_implementationOnly import RuntimeSwizzling
44
import UIKit
55

66
extension AnyNavigationTransition {
@@ -117,7 +117,7 @@ extension RandomAccessCollection where Index == Int {
117117
}
118118
}
119119

120-
extension UINavigationController: RuntimeAssociation {
120+
extension UINavigationController {
121121
private var defaultDelegate: UINavigationControllerDelegate! {
122122
get { self[] }
123123
set { self[] = newValue }
@@ -251,7 +251,7 @@ extension UINavigationController {
251251
}
252252

253253
@available(tvOS, unavailable)
254-
extension UIGestureRecognizer: RuntimeAssociation {
254+
extension UIGestureRecognizer {
255255
var strongDelegate: UIGestureRecognizerDelegate? {
256256
get { self[] }
257257
set {

Sources/RuntimeAssociation/RuntimeAssociation.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ extension RuntimeAssociation {
1616
}
1717
}
1818
}
19+
20+
extension NSObject: RuntimeAssociation {}

0 commit comments

Comments
 (0)