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
Advanced workflows for media synchronization, custom audio catalog packaging, and offline signature processing.
Use SHMatchedMediaItem.matchOffset and frequencySkew to synchronize app UI, video, or lyrics precisely with ambient audio:
import ShazamKit
final class MediaSyncCoordinator: Sendable {
func synchronize(with match: SHMatchedMediaItem, localVideoPlayer: AnyObject) {
let offset = match.matchOffset
let skew = match.frequencySkew ?? 1.0
// Calculate current playback timestamp
print("Audio matched at offset: \(offset) seconds with skew factor: \(skew)")
}
}Store .shazamcatalog files in the app bundle and initialize SHCustomCatalog at runtime:
import ShazamKit
final class BundledCatalogProvider {
static func loadCatalog(named name: String) throws -> SHCustomCatalog {
guard let url = Bundle.main.url(forResource: name, withExtension: "shazamcatalog") else {
throw CatalogError.fileNotFound
}
let customCatalog = SHCustomCatalog()
try customCatalog.add(from: url)
return customCatalog
}
enum CatalogError: Error {
case fileNotFound
}
}Match single signatures asynchronously using SHSession.match(_:) without needing delegate boilerplate:
import ShazamKit
actor SignatureMatcher {
private let session: SHSession
init(catalog: SHCustomCatalog? = nil) {
if let catalog {
self.session = SHSession(catalog: catalog)
} else {
self.session = SHSession()
}
}
func match(signature: SHSignature) async throws -> SHMatchedMediaItem? {
let match = try await session.match(signature)
return match.mediaItems.first
}
}Batch-process local audio files into signatures on background actors:
import ShazamKit
import AVFAudio
actor OfflineSignatureProcessor {
func processAudio(at fileURL: URL) throws -> SHSignature {
let audioFile = try AVAudioFile(forReading: fileURL)
let generator = SHSignatureGenerator()
let buffer = AVAudioPCMBuffer(
pcmFormat: audioFile.processingFormat,
frameCapacity: 4096
)!
while audioFile.framePosition < audioFile.length {
try audioFile.read(into: buffer)
try generator.append(buffer, at: nil)
}
return generator.signature()
}
}.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