I using ScreenTime API in the app to hide some app users want to but when upload to Apple Store, the app was rejected,
Your app uses public APIs in an unapproved manner, which does not comply with guideline 2.5.1 of the App Store Review Guidelines.
Since there is no accurate way of predicting how an API may be modified and what effects those modifications may have
Next Step
Please revise your app to ensure that documented APIs are used in the manner prescribed by Apple.
Anyone can help to fix?