Used the Swift 5 conversion tool in Xcode to modify the code and upgrade to Swift 5.
Changes
Changed .index calls to .firstIndex (from conversion tool)
Updated AppDelegate.swift within the Example to use new constant for didFinishLaunchingWithOptions (from conversion tool)
Updated ViewController.swift within the Example to use new constant for UIButtonType (from conversion tool)
Updated Swift version for project to 5.0 (from conversion tool)
Testing
Tested the example on an iPhone 7 running iOS 11. Verified that scrolling and switching between the different drawer states works the same way as before.
Description
Used the Swift 5 conversion tool in Xcode to modify the code and upgrade to Swift 5.
Changes
.index
calls to.firstIndex
(from conversion tool)didFinishLaunchingWithOptions
(from conversion tool)UIButtonType
(from conversion tool)Testing
Notes