KyleGoddard / KGFloatingDrawer

A floating navigation drawer with an interesting animated presentation written in Swift.
MIT License
499 stars 79 forks source link

Xcode 8.1: swift 2.3 issue with #30

Open kennebecstars opened 7 years ago

kennebecstars commented 7 years ago

Hi.

This is a simple one to fix for this version of Xcode.

fatal error: init(coder:) has not been implemented: file ./Pods/KGFloatingDrawer/Pod/Classes/KGDrawerViewController.swift, line 29

required public init?(coder aDecoder: NSCoder) {
    fatalError("init(coder:) has not been implemented")
}

This goes away if I simply add a call to super.init prior to the fatalError:

    super.init(coder: aDecoder)
kennebecstars commented 7 years ago

pod 'KGFloatingDrawer', '~> 0.2.0'

kennebecstars commented 7 years ago

And as soon as I had entered this issue, I rebuilt and ended up crashing at the fatalError, again. So I removed it and all proceeded. I don't know if the init chain is still okay, but UIView surely owns the KGFloatingDrawerViewController from UIWindow instance in the @UIApplicationMain. Agree?