iOS, Swift, Swiftui, Mobile, Mobile App Development.
cross-cutting concern in the application could be to only allow to perform some actions in case the user is premium. By injecting a simple () async -> Bool function to abstract the way we check whether the user is premium or not, we can have our PremiumService decorator like this: class