SOLUTION:
Used .task instead of .onAppear. .task runs whenever the view appears so it works the same without bugging out. .onDisappear still works fine so these can be used together to take the place of the paired usage of .onAppear and .onDisappear until there is a fix for .onAppear
(Tagging this for some poor soul who had my problem: Camera indicator turning on in view that doesn't use camera SwiftUI)
Post
Replies
Boosts
Views
Activity
SOLUTION:
Used .task instead of .onAppear. .task runs whenever the view appears so it works the same without bugging out. .onDisappear still works fine so these can be used together to take the place of the paired usage of .onAppear and .onDisappear until there is a fix for .onAppear
(Tagging this for some poor soul who had my problem: Camera indicator turning on in view that doesn't use camera SwiftUI)
I know this is three years old, but I recently ran into this issue and wanted to put my solution here.
First I waited until it showed on my Apple Developer account that my membership was up to date after purchasing (which was the next day after the purchase).
Then I went into Xcode 15, opened settings on the top bar, then opened accounts, under Apple ID's I double-clicked on the bar under Team and Role.
Then I hit the "+" and clicked "Apple Development". After that, paid ADP and ADEP features like Push Notifications, IAP (In App Purchase), and Apple Pay showed up under Target > Signing & Capabilities > "+ Capabilities".
Hope this helps someone else.