Animalify: Using Safari App Extensions to modify pages and communicate with native code

Last Revision:
Version 1.1, 2016-11-03
Update to final Swift 3
(Full Revision History)
Build Requirements:
Xcode 8.0 or later; macOS 10.12 SDK or later
Runtime Requirements:
macOS 10.12 or later, or OS X 10.11 with Safari 10.0 or later

This sample demonstrates how a Safari App Extension can modify the contents of webpages that its users visit, and how scripts injected into pages by the Safari App Extension can communicate with the app extension’s native code.