File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed
Sources/SwiftUINavigationCore/Internal Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change 46
46
//
47
47
// Feedback filed: https://gist.github.com/stephencelis/a8d06383ed6ccde3e5ef5d1b3ad52bbc
48
48
@usableFromInline
49
- let dso = UncheckedSendable < UnsafeMutableRawPointer > ( {
50
- let count = _dyld_image_count ( )
51
- for i in 0 ..< count {
52
- if let name = _dyld_get_image_name ( i) {
53
- let swiftString = String ( cString: name)
54
- if swiftString. hasSuffix ( " /SwiftUI " ) {
55
- if let header = _dyld_get_image_header ( i) {
56
- return UnsafeMutableRawPointer ( mutating: UnsafeRawPointer ( header) )
49
+ let dso = UncheckedSendable < UnsafeMutableRawPointer > (
50
+ {
51
+ let count = _dyld_image_count ( )
52
+ for i in 0 ..< count {
53
+ if let name = _dyld_get_image_name ( i) {
54
+ let swiftString = String ( cString: name)
55
+ if swiftString. hasSuffix ( " /SwiftUI " ) {
56
+ if let header = _dyld_get_image_header ( i) {
57
+ return UnsafeMutableRawPointer ( mutating: UnsafeRawPointer ( header) )
58
+ }
57
59
}
58
60
}
59
61
}
60
- }
61
- return UnsafeMutableRawPointer ( mutating: #dsohandle)
62
- } ( ) )
62
+ return UnsafeMutableRawPointer ( mutating: #dsohandle)
63
+ } ( ) )
63
64
64
65
@usableFromInline
65
66
struct UncheckedSendable < Value> : @unchecked Sendable {
You can’t perform that action at this time.
0 commit comments