Post

Replies

Boosts

Views

Activity

Reply to Inquiry Regarding the Scope of DeclaredAgeRange Acquisition​
@jarrodlombardo-eventbase That's an important var. However, when calling it (in UIKit environment), I get an error "Cannot find 'isEligibleForAgeFeatures' in scope". What is the framework to import ? Note: I also asked the question in the other thread: https://developer.apple.com/forums/thread/809829 Would be really great to get Apple answers to clarify all this. It is really messy.
Topic: App & System Services SubTopic: General Tags:
Dec ’25
Reply to Where to find sample code for SB2420 compliance and questions
line 19: I used the documentation sample for AgeRangeService, but get a Compiler Error: Missing argument for parameter 'in' in call That was for SwiftUI. For UIKit, require in parameter. So code reformatted. Removes all errors except unknown isEligibleForAgeFeatures. All other questions remain. func testAgeRange() async -> Bool { if !isEligibleForAgeFeatures { // Which import needed ? return true // Not called from Texas } do { let response = try await AgeRangeService.shared.requestAgeRange(ageGates: 13, 15, 18, in: self) // Can I use the 4 gate instead ? ageGates: 4, 13, 18 // guard let lowerBound = response.lowerBound else { // // Allow access to under 13 features. // return false // } var lowerBound = 4 switch response { case .declinedSharing: print("User declined to share age.") return false case .sharing(let range): lowerBound = range.lowerBound ?? 4 print("User age range: \(range.lowerBound ?? 0)-\(range.upperBound ?? 99)") @unknown default: print( "fatalError()") return false } var ok = false if lowerBound >= 18 { // Not needed ? // Allow access to 18+ features. ok = true } else if lowerBound >= 15 { // Not needed ? // Allow access to 15+ features. ok = true } else if lowerBound >= 13 { // Not needed ? // Require parental consent ? // Allow access to 13+ features. ok = true // if consent OK } else { // Require parental consent ? // Show age-appropriate content ok = true // if consent OK } return ok // Authorized for all 4+ } catch { // AgeRangeService.Error.notAvailable { // No age range provided. return false } } func executeStart() { welcomeLabel.isHidden = false } @IBAction func start(_ sender: UIButton) { Task { @MainActor in if #available(iOS 26.0, *) { if await testAgeRange() { // Need to test for parental control here ? } else { // Alert and exit the app ? } } else { // do nothing ? Can we run the app ? } executeStart() } }
Topic: UI Frameworks SubTopic: UIKit Tags:
Dec ’25
Reply to [Texas SB 2420] How to Retrieve Parental Consent Status
@ jarrodlombardo-eventbase Thanks for the comment. Yes it is creating a real mess. @Paris X Pinkney Apple: describing what the API can do is useful but not enough. As expressed elsewhere, a detailed workflow is really needed, with an implementation example also. As well as explaining what to do if run on iOS < 26 ? In addition, after Determining whether a person using your app is in an applicable region that requires additional age-related obligations. can we just terminate the app to prevent its use ? Or would that cause a rejection on Appstore ?
Topic: App & System Services SubTopic: General Tags:
Dec ’25
Reply to Texas's SB 2420: obligations depending on app rating ?
@jarrodlombardo-eventbase Thanks for the reply. That seems at least a safe interpretation. But now the question is: if; from answers to questions on age rating, app is evaluated as suited for all public (4+), any verification will succeed, by construction. So what would be the purpose of asking for a verification that would always succeed ? Or is the law intended to allow parents to refuse consent in any case ? Question to Apple: Is it correct analysis ? Otherwise, how to exclude Texas from the available "countries", without excluding all US states ?
Dec ’25
Reply to [Texas SB 2420] How to Retrieve Parental Consent Status
@DTS Engineer thanks for the information. you must build your app against the iOS 26.2 and iPadOS 26.2 SDKs and later, with Xcode 26.2 (17C52) and later But a clarification needed: is using Xcode 26 required only to access all API ? Can you confirm that to keep the app updatable on AppStore, it is enough to update meta data on age ratings and submit the app, even if compiled with Xcode 16 ?
Topic: App & System Services SubTopic: General Tags:
Dec ’25
Reply to Apple’s age rating deadline: will apps be blocked after 31 Jan 2026?
What is not clear is what actually happens after that date. My understanding is that you will not be able to submit a new release, but they don't tell the app will be blocked. So I fear it is case B. That's how I interpreted, to be on the safe side.   if you can't provide a new build yet In fact, there is no need to develop a new version. You can simply re-archive the former version of the app with incremented build and version numbers, complete age ratings information and then submit with this "new" build. In the what's new field of AppStoreConnect, simply say: minor bug fixes. Given the many times this question is raised on the forum and how much it worries developers, it would be great to have a comprehensive answer from Apple.
Dec ’25
Reply to Final reminder: Answer the updated age ratings questions.( WHICH EMAIL IS IT?)
Anyway,WHAT APP IS IT? what is this GENERAL EMAIL? Should we ignore it? Yes, I do think it is a general email You should not ignore, as there is apparently a risk after jan 31 not to be able to resubmit. Unfortunately, they don't tell which app. To know which app, you have to go in appStoreConnect and select each app. If you need to update, you'll get a specific warning. See details here: https://developer.apple.com/forums/thread/809243?answerId=869488022#869488022 If so, you should update by resubmitting with the age information fully completed.
Dec ’25
Reply to Questions about DeclaredAgeRange's isEligibleForAgeFeatures instance variable
@jarrodlombardo-eventbase Thanks, effectively need to call through shared instance. Thanks for the help.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’25
Reply to Inquiry Regarding the Scope of DeclaredAgeRange Acquisition​
@jarrodlombardo-eventbase That's an important var. However, when calling it (in UIKit environment), I get an error "Cannot find 'isEligibleForAgeFeatures' in scope". What is the framework to import ? Note: I also asked the question in the other thread: https://developer.apple.com/forums/thread/809829 Would be really great to get Apple answers to clarify all this. It is really messy.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’25
Reply to Questions about DeclaredAgeRange's isEligibleForAgeFeatures instance variable
The question to know if we can call isEligibleForAgeFeatures first (in order not to ask question if not needed) is really important. In addition, even though I import DeclaredAgeRange, I get an error "Cannot find 'isEligibleForAgeFeatures' in scope"
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’25
Reply to Where to find sample code for SB2420 compliance and questions
line 19: I used the documentation sample for AgeRangeService, but get a Compiler Error: Missing argument for parameter 'in' in call That was for SwiftUI. For UIKit, require in parameter. So code reformatted. Removes all errors except unknown isEligibleForAgeFeatures. All other questions remain. func testAgeRange() async -> Bool { if !isEligibleForAgeFeatures { // Which import needed ? return true // Not called from Texas } do { let response = try await AgeRangeService.shared.requestAgeRange(ageGates: 13, 15, 18, in: self) // Can I use the 4 gate instead ? ageGates: 4, 13, 18 // guard let lowerBound = response.lowerBound else { // // Allow access to under 13 features. // return false // } var lowerBound = 4 switch response { case .declinedSharing: print("User declined to share age.") return false case .sharing(let range): lowerBound = range.lowerBound ?? 4 print("User age range: \(range.lowerBound ?? 0)-\(range.upperBound ?? 99)") @unknown default: print( "fatalError()") return false } var ok = false if lowerBound >= 18 { // Not needed ? // Allow access to 18+ features. ok = true } else if lowerBound >= 15 { // Not needed ? // Allow access to 15+ features. ok = true } else if lowerBound >= 13 { // Not needed ? // Require parental consent ? // Allow access to 13+ features. ok = true // if consent OK } else { // Require parental consent ? // Show age-appropriate content ok = true // if consent OK } return ok // Authorized for all 4+ } catch { // AgeRangeService.Error.notAvailable { // No age range provided. return false } } func executeStart() { welcomeLabel.isHidden = false } @IBAction func start(_ sender: UIButton) { Task { @MainActor in if #available(iOS 26.0, *) { if await testAgeRange() { // Need to test for parental control here ? } else { // Alert and exit the app ? } } else { // do nothing ? Can we run the app ? } executeStart() } }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Dec ’25
Reply to Need help with attribute inspector in Xcode 26
@ Travis Trotto This is an unfortunate removal. It was much more user friendly than the new procedure, really circumvoluted. Looks like Xcode is less and less WYSIWYG.
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Dec ’25
Reply to Parameter Errors - procedural vs. optional
Could you: show the complete code (and use code formatter tool) indicate at which line error occurs
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’25
Reply to Apple’s age rating deadline: will apps be blocked after 31 Jan 2026?
There are some code samples in WWDC, but pretty limited and for SwiftUI: https://developer.apple.com/videos/play/wwdc2025/299/ That's not enough to expedite the compliance. Please Apple, could you provide a complete demo code, not requiring SwiftUI.
Replies
Boosts
Views
Activity
Dec ’25
Reply to Texas's SB 2420: obligations depending on app rating ?
There are some code samples in WWDC, but pretty limited and for SwiftUI: https://developer.apple.com/videos/play/wwdc2025/299/ That's not enough to expedite the compliance. So maybe the safest is to test location (Texas) and close the app in that case.
Replies
Boosts
Views
Activity
Dec ’25
Reply to [Texas SB 2420] How to Retrieve Parental Consent Status
@ jarrodlombardo-eventbase Thanks for the comment. Yes it is creating a real mess. @Paris X Pinkney Apple: describing what the API can do is useful but not enough. As expressed elsewhere, a detailed workflow is really needed, with an implementation example also. As well as explaining what to do if run on iOS < 26 ? In addition, after Determining whether a person using your app is in an applicable region that requires additional age-related obligations. can we just terminate the app to prevent its use ? Or would that cause a rejection on Appstore ?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’25
Reply to Texas's SB 2420: obligations depending on app rating ?
@jarrodlombardo-eventbase Thanks for the reply. That seems at least a safe interpretation. But now the question is: if; from answers to questions on age rating, app is evaluated as suited for all public (4+), any verification will succeed, by construction. So what would be the purpose of asking for a verification that would always succeed ? Or is the law intended to allow parents to refuse consent in any case ? Question to Apple: Is it correct analysis ? Otherwise, how to exclude Texas from the available "countries", without excluding all US states ?
Replies
Boosts
Views
Activity
Dec ’25
Reply to Cannot close my own threads
In fact, same issue when trying to accept someone else answer.
Replies
Boosts
Views
Activity
Dec ’25
Reply to Need help with attribute inspector in Xcode 26
Yes, Attributes Inspector is apparently gone: https://developer.apple.com/forums/thread/808662?answerId=867740022#867740022
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Dec ’25
Reply to [Texas SB 2420] How to Retrieve Parental Consent Status
@DTS Engineer thanks for the information. you must build your app against the iOS 26.2 and iPadOS 26.2 SDKs and later, with Xcode 26.2 (17C52) and later But a clarification needed: is using Xcode 26 required only to access all API ? Can you confirm that to keep the app updatable on AppStore, it is enough to update meta data on age ratings and submit the app, even if compiled with Xcode 16 ?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’25
Reply to Apple’s age rating deadline: will apps be blocked after 31 Jan 2026?
What is not clear is what actually happens after that date. My understanding is that you will not be able to submit a new release, but they don't tell the app will be blocked. So I fear it is case B. That's how I interpreted, to be on the safe side.   if you can't provide a new build yet In fact, there is no need to develop a new version. You can simply re-archive the former version of the app with incremented build and version numbers, complete age ratings information and then submit with this "new" build. In the what's new field of AppStoreConnect, simply say: minor bug fixes. Given the many times this question is raised on the forum and how much it worries developers, it would be great to have a comprehensive answer from Apple.
Replies
Boosts
Views
Activity
Dec ’25
Reply to Final reminder: Answer the updated age ratings questions.( WHICH EMAIL IS IT?)
Anyway,WHAT APP IS IT? what is this GENERAL EMAIL? Should we ignore it? Yes, I do think it is a general email You should not ignore, as there is apparently a risk after jan 31 not to be able to resubmit. Unfortunately, they don't tell which app. To know which app, you have to go in appStoreConnect and select each app. If you need to update, you'll get a specific warning. See details here: https://developer.apple.com/forums/thread/809243?answerId=869488022#869488022 If so, you should update by resubmitting with the age information fully completed.
Replies
Boosts
Views
Activity
Dec ’25