Touchpose
Touchpose copied to clipboard
Swift Compiler
main.swift doesn't work on Xcode 8.2 (on January 19, 2017), unless I change to this:
UIApplicationMain(CommandLine.argc, UnsafeMutableRawPointer(CommandLine.unsafeArgv) .bindMemory(to: UnsafeMutablePointer<Int8>.self, capacity: Int(CommandLine.argc)), NSStringFromClass(QTouchposeApplication.self), NSStringFromClass(AppDelegate.self))
Also, the instructions would be better if they mentioned that "QTouchposeApplication.h" should be added to the user's Swift bridging header file.
Thanks for this!
Thanks, this worked for me as well!
for some more clarification, not positive we need the UnsafeMutableRawPointer any more with xCode 11.x it appears to work fine without it, but let me know if one finds a problem with it, see below:
should include a Bridging header :OculigamiPaint-Bridging-Header.h in the app, with this line in it:#import "QTouchposeApplication.h"
main.swift can look like this then:
import UIKit
UIApplicationMain( CommandLine.argc, CommandLine.unsafeArgv, NSStringFromClass(QTouchposeApplication.self), NSStringFromClass(AppDelegate.self) //...... replace with the name of your delegate if different )