How do I initialize Pixate Freestyle on iOS using Swift?
The documentation say to do
int main(int argc, char *argv[])
{
@autoreleasepool {
[PixateFreestyle initializePixateFreestyle];
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
How do I do that with Swift?
In AppDelegate.swift, comment out or remove:
Create a main.swift that contains:
For XCode 6.3 and higher replace the
UIApplicationMainline with:And for Cocoapod-based installs (at least) remember to create (and configure in the target Build Settings) a bridging header with the correct import line: