Files
swift-mirror/test/stdlib/AssetsLibrary.swift
2016-09-01 16:51:43 -07:00

17 lines
531 B
Swift

// RUN: %target-run-simple-swift
// REQUIRES: executable_test
// REQUIRES: OS=ios
import AssetsLibrary
// Test the enumerateGroupsWithTypes overload that accepts UInt32.
// This should compile and not crash at runtime.
let library = ALAssetsLibrary()
library.enumerateGroupsWithTypes(ALAssetsGroupAll,
usingBlock: {(group: ALAssetsGroup?, stop: UnsafeMutablePointer<ObjCBool>?) -> Void in
print("Swift usingBlock")},
failureBlock: {(error: Error?) -> Void in
print("Swift failureBlock")})