For Swift :
Stop your code with a breakpoint and enter the following lldb command:
(lldb) p UIApplication.sharedApplication().windows.first?.layer.speed = 0.1
Alternatively, you can also change the speed somewhere in your code. For example, with the #if preprocessor macro when starting the application
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { ... #if DEBUG application.windows.first?.layer.speed = 0.1 #endif
Remember to set the DEBUG symbol in the "Swift Compiler - Custom Flags", "Other Swift Flags" section. You add the DEBUG character with the -DDEBUG .
dreamlab Nov 25 '15 at 0:51 2015-11-25 00:51
source share