AVFoundation is a multimedia framework with APIs in Objective-C and Swift, which provides high-level services for working with time-based audiovisual media on Apple Darwin-based operating systems: iOS, macOS, tvOS, and watchOS.[1] It was first introduced in iOS 4[2][3] and has seen significant changes in iOS 5 and iOS 6. Starting with Mac OS X Lion, it is now the default media framework for the macOS platform.