Swift Headphones Button open src/SwiftHeadphonesButton/SwiftHeadphonesButton/project.xcworkspace This is not finished. Check out this Stack Overflow answer for the available API for headphone button detection.