Avatar
もしかして対象のNSStringへの参照を掴んでいたりしたらSendableにならないかもしれんと思ったけど、OSS Foundationを見る限りはただのタプルなので、Sendableにしたらいいですね public struct _NSRange { public var location: Int public var length: Int public init() { location = 0 length = 0 } public init(location: Int, length: Int) { self.location = location self.length = length } } https://github.com/apple/swift-corelibs-foundation/blob/ee856f110177289af602c4040a996507f7d1b3ce/Sources/Foundation/NSRange.swift
The Foundation Project, providing core utilities, internationalization, and OS independence - swift-corelibs-foundation/NSRange.swift at ee856f110177289af602c4040a996507f7d1b3ce · apple/swift-corel...