Hi,
I'm new to the developer community and am developing an app for a school project that relies on the screentime API. I'm using SwiftUI to generate Labels using the given ApplicationToken generated from my FamilyActivitySelection. However, I notice that the icon for these tokens is extremely small: only about 25x25 px.
I'm wondering if there is a way that the screentime API can let us use higher-res images using the opaque tokens?
This would be extremely useful in developing a more HIG-aligned app (e.g. a scroll-view of blocked apps).
Thank you!
Post
Replies
Boosts
Views
Activity
The simulator FamilyActivityPicker has no access to simulator apps, so the picker is completely empty. This restricts devs ability to build and test locally. Is there a way the simulator can in the future actually use the FamilyActivityPicker?
Currently, FamilyActivity labels rendered with Label(ApplicationToken) seem to have no way to respect a .preferredColorscheme(.dark/.light). The token appearance seems coerced to the system setting rather than the app preference. This results in tokens being arbitrarily invisible according to combinations of app and system colorscheme preferences.
For example, if the user has set dark mode and SwiftUI sets .preferredColorscheme(.light), both the view background and label text will be white. (Conversely, with a combination of system light mode and view .preferredColorscheme(.black), both the view background and label text is be black).
Is there any way to get a Label(ApplicationToken) to respect the application's preferredColorScheme?
Does anyone know if there's a way to use the FamilyActivityPicker and select apps in the simulator? Right now, my app list is blank even after giving Screentime API permissions. Therefore, I have to do all testing on a physical device or in previews. Not sure if I'm missing something, this is a bug, or this should be a feedback assistant post.
Say a user wants to restrict their schedule for a certain app's usage every day. For sake of example, lets say they want to block Fruit Ninja usage during certain times of the day, and they've downloaded Fruit Ninja on iPhone and iPad. Is there a way to sync Family Controls / ManagedSettings settings between iOS and iPad, like a user can create a unified account that monitors Fruit Ninja usage across both devices (without having to set up separate configs on each device?)
I'm thinking of something like syncing ApplicationTokens, but I don't think this would work since I imagine the hashes will be different for the same app on different devices.