Community-maintained Agent Skills for complete Swift and Apple-platform app delivery.
72
90%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Medium
Suggest reviewing before use
Create child communication safety experiences by requesting parental permission for communication exceptions. PermissionKit enables children to ask parents/guardians for approval when reaching communication limits.
Scope Boundary: PermissionKit communication experiences are dispatched exclusively via iMessage. Use it strictly for parental exception approval flows, not as a general permission, chat, or content-moderation framework.
Import PermissionKit. Gate APIs according to the platform availability matrix:
CommunicationLimits.AskError.AskCenter, PermissionButton, SignificantAppUpdateTopic.No custom entitlements are required; verify capabilities against official SDK documentation.
Check whether a target handle is already authorized before initiating permission prompts. Guard against empty bundle identifiers:
import PermissionKit
func requiresParentalApproval(for handle: CommunicationHandle) async -> Bool {
guard Bundle.main.bundleIdentifier?.isEmpty == false else { return false }
let limits = CommunicationLimits.current
let isKnown = await limits.isKnownHandle(handle)
return !isKnown
}If communication limits are not enabled on the device, AskCenter.shared.ask(...) throws AskError.communicationLimitsNotEnabled.
Construct a CommunicationTopic and PermissionQuestion to present to the child:
let handle = CommunicationHandle(email: "coach@example.com")
let topic = CommunicationTopic(handle: handle)
let question = PermissionQuestion(topic: topic, message: "Can I message Coach Alex?")
// Send request via AskCenter
do {
let response = try await AskCenter.shared.ask(question)
switch response.choice {
case .approved:
// Parent approved; proceed with communication
allowCommunication(with: handle)
case .denied:
// Parent declined
notifyUserDenied()
@unknown default:
break
}
} catch AskError.communicationLimitsNotEnabled {
// Limits disabled; allow without prompt
allowCommunication(with: handle)
} catch {
print("Permission request failed: \(error)")
}Use PermissionButton (iOS 26.2+) to render standardized, accessible triggers:
import SwiftUI
import PermissionKit
struct ContactRow: View {
let question: PermissionQuestion
var body: some View {
PermissionButton(question) { response in
if response.choice == .approved {
// Handle approval
}
}
}
}When introducing major updates to communication features, notify parents using SignificantAppUpdateTopic:
let updateTopic = SignificantAppUpdateTopic(
title: "Video Calling Feature",
summary: "New capability to initiate video calls with approved contacts."
)
let question = PermissionQuestion(topic: updateTopic)AskError.communicationLimitsNotEnabled explicitly.knownHandles without a valid bundle identifier results in runtime failures.@unknown default for future parent response choices.Bundle.main.bundleIdentifier validated before checking handlesAskError.communicationLimitsNotEnabled caught and handled appropriatelyPermissionButton used in SwiftUI for system-consistent UX.approved, .denied) handled cleanly.tessl-plugin
skills
accessorysetupkit
references
activitykit
adattributionkit
references
alarmkit
references
app-clips
app-intents
app-store-optimization
app-store-review
apple-on-device-ai
appmigrationkit
audioaccessorykit
references
authentication
references
avfoundation-audio
references
avkit
background-processing
references
browserenginekit
callkit
references
carplay
cloudkit
contacts-framework
references
core-bluetooth
references
core-data
core-haptics
references
core-motion
references
core-nfc
references
coreml
references
cryptokit
cryptotokenkit
debugging-instruments
device-integrity
references
energykit
references
eventkit
family-controls
references
financekit
focus-engine
gamekit
git-branching-workflow
references
healthkit
references
homekit
references
ios-accessibility
ios-app-workflow
references
ios-ettrace-performance
ios-localization
ios-memgraph-analysis
ios-networking
ios-simulator
references
metrickit
references
musickit
references
natural-language
paperkit
references
passkit
references
pdfkit
pencilkit
references
permissionkit
references
photokit
push-notifications
quicklook
references
realitykit
references
relevancekit
references
scenekit
sensorkit
shazamkit
references
speech-recognition
references
spritekit
storekit
swift-api-design-guidelines
swift-architecture
references
swift-charts
swift-codable
references
swift-code-review
swift-concurrency
swift-formatstyle
references
swift-language
swift-security
references
swift-testing
swiftdata
swiftlint
swiftui-animation
swiftui-gestures
references
swiftui-layout-components
swiftui-liquid-glass
references
swiftui-patterns
swiftui-performance
swiftui-responsive-layout
swiftui-uikit-interop
swiftui-webkit
tabletopkit
tipkit
vision-framework
weatherkit
references