Hi list,
Since Swift 3 there exist overlay structs, e.g. NSURL gets bridged to URL.
Unfortunately now extensions on URL are not getting bridged back to ObjC:
extension URL {
func doSomething() -> URL {
return self.absoluteURL
}
}
+ (NSURL *)swiftStructExtensionCaller {
NSURL *url = [NSURL
URLWithString:@"https://apple.github.io/swift-evolution/"];
return [url doSomething];
}
The compiler does not see the method `doSomething`. Is this on purpose, or
something that has yet to be improved?
I'm aware that I could write the extension on NSURL, but that would mean a lot
of casting on the Swift side.
-- Fabian
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution