Thanks for the response. So just to be clear, this would mean that if I had module Foo
:
// Foo.swift
func foo() { ... }
And module Bar
:
// Bar.swift
@_exported import Foo
And dependencies set up like so:
//Package.swift
...
targets: [
.library(name: "Foo"),
.library(name: "Bar", dependencies: ["Foo"]),
.library(name: "Baz", dependencies: ["Bar"]),
]
...
Then from inside Baz
, I wold still be able to caall foo
without importing Foo
directly:
// Baz.swift
import Bar
foo() // imported from Foo via Bar
Is that correct?