AppSwitcherView 0.1.2

AppSwitcherView 0.1.2

Maintained by Oleksii Mykhailenko.



  • By
  • Oleksii Mykhailenko

AppSwitcherView

Version License Platform

Show LaunchScreen or your UIView/UIViewController instead app snapshot in the App Switcher.

Requirements

  • iOS 10.0+
  • Xcode 10.0+
  • Swift 4.2+

Installation

AppSwitcherView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'AppSwitcherView'

How to use

Turn on AppSwitcherView by calling the following line in the - application:didFinishLaunchingWithOptions: application delegate. Don't forget do import: import AppSwitcherView

import AppSwitcherView
...
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
...
AppSwitcherView.setup()
...
return true
}

Thats all, run your app and you will see the LaunchScreen when open the App Switcher.

How to open App Switcher

Switch apps on iPhone X or later:

  • Swipe up from the bottom to the middle of your screen and hold until you see the App Switcher.

If you have a Smart Keyboard or Bluetooth keyboard paired to your iPad, press Command-Tab to switch between apps.

Switch apps with the Home button iPhone 8 or earlier:

  • Double-click the Home button to see recently used apps.

Example

Show LaunchScreen

AppSwitcherView.setup()

Show your custom UIView

AppSwitcherView.setupWith(view: YOUR_UIVIEW)

Show your custom UIViewController

AppSwitcherView.setupWith(viewController: YOUR_UIVIEWCONTROLLER)

Show snapshot with blur

AppSwitcherView.setupWithBlur() //Default blur settings
AppSwitcherView.setupWithBlur(style: .dark, alpha: 0.75) //Custom blur settings

Author

Oleksii Mykhailenko, [email protected]

License

AppSwitcherView is available under the MIT license. See the LICENSE file for more info.