Michael Long
Oct 29, 2024

--

You probably need to reread that section, as I also said, "But in our cross-modular application we can’t do that."

As such, one would in fact need to make ModuleB's AccountLoader class public.

Public AccountLoading protocol in P, public AccountLoader class in B, and the app, which "knows" about B, wires things together.

--

--

Michael Long
Michael Long

Written by Michael Long

I write about Apple, Swift, and SwiftUI in particular, and technology in general. I'm also a Lead iOS Engineer at InRhythm, a modern digital consulting firm.

No responses yet