Repository navigation
feat: block adult content - #79
Conversation
|
Hey, thanks for the PR @archietownsend! This is a feature I'd love to add, and I do like the toggle system, like custom domains. Few things (Suggested by Claude)
If you don't have time to update, I'll work on top of this pr and get it ready by tn. |
|
Thanks for the review! Pushed an update:
|
Thanks for the update! After thinking about it, I don't think this should work like an app, where it's blocked by keeping all apps unblocked. I'm thinking let's make this it's own toggle, similar to deleting apps. It makes sense because it's a separate setting in screen-time, like blocking delete apps. Can expand this further, for similar settings if this comes up. I'm going merge this in, and going to add a second commit building on top this. |
- "Block Adult Websites" toggle in Settings using Apple's web content filter (.auto), merged with custom domains in the main store via the shield reconciler - Turning it off requires a key, like Prevent App Deletion; independent of Block All and not counted as an active block - Emergency Unblock lifts the filter - Extract KeyProtectedToggle shared by the adult content and Prevent App Deletion toggles Co-authored-by: ykisana <ykisana@protonmail.com>
00d53d0 to
a6af941
Compare
Adds a "Block Adult Websites" toggle in Settings, under a new Adult Content section.
webContent.blockedByFilter = .auto(customDomains)) in the mainManagedSettingsStore, merged with custom domains through the shield reconciler. It stays in one store because iOS doesn't document how.autoand.specificfilters combine across named stores.KeyProtectedTogglecomponent, used by both the adult content and Prevent App Deletion toggles.Needs an on-device check (the filter is a no-op in the simulator): adult sites and custom domains are both blocked, and turning it off removes only the adult filter.