Skip to content

Instantly share code, notes, and snippets.

@KentarouKanno
Last active November 28, 2018 03:57
Show Gist options
  • Save KentarouKanno/0a88a01e727f44ec4313f9da4a04e201 to your computer and use it in GitHub Desktop.
Save KentarouKanno/0a88a01e727f44ec4313f9da4a04e201 to your computer and use it in GitHub Desktop.
Debug Know How

Debug

Animation

  • シュミレーターでアニメーションをスローモーションにする
シュミレーター > Debug > Slow Animationsにチェックを入れる
 or 
⌘ + T

  • 実機でアニメーションをスローモーションにする didFinishLaunchingWithOptionsに以下を追加する
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    
    #if DEBUG
    application.windows.first?.layer.speed = 0.1
    #endif
    
    return true
}

Connection

Location

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment