1

Say I have some extension in module A:

public extension String {
    func foo() { ... }
}

In module B, I would like to sometimes import individual extensions (or files), just like I can import struct, import enum, ...

Neither of

import struct A.String
import func A.String.foo

works, and there does not seem to be a keyword geared towards extensions.

Is this possible? How?

Raphael
  • 9,779
  • 5
  • 63
  • 94

1 Answers1

0

First of all read this: apple doc modules but its not possible, you can only use the Access Levels

szuniverse
  • 1,076
  • 4
  • 17
  • 32