StoreKit 2 with different access based on levels

Hi,

I'm looking through the Backyard Birds app and trying to wrap my head around StoreKit 2 and make it work with my app.

Currently my app is three tabs that, for example, call access1, access2, and profile. I want to make users pay for access to the first two tabs and, by default, profile is visible on download for unsubscribed members. In the Backyard Birds app they have three levels that are clear cut and then they figure out access for family sharing by the highest level the user has.

I currently have six subscriptions listed under my group:

level1: 
all access annual
all access monthly
level2: 
access1 only annual
access1 only monthly
access2 only annual
access2 only monthly

My thought with this (not set up yet) is if the user subscribes to all access they have access to all three tabs. If they subscribe to access1 only they have access to the first and third(profile) tabs. If they subscribe to access2 then they have access to the second and third tabs.

I guess my main problem is I don't know how to implement func status(for statuses: [Product.SubscriptionInfo.Status], ids: PassIdentifiers) -> PassStatus as if there's a family member with access1 and another family member with access2 then the current person should essentially have all access (all three tab access).

Before I stumbled along further I wanted to check with all of you and see if there's a better way to set up or continue with the Backyard Pass example with different logic in status.

Thanks everyone.

StoreKit 2 with different access based on levels
 
 
Q