Skip to content

Instantly share code, notes, and snippets.

@seasox
Created June 27, 2018 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seasox/b93444ec4162cfb302fb91d1c7cabe65 to your computer and use it in GitHub Desktop.
Save seasox/b93444ec4162cfb302fb91d1c7cabe65 to your computer and use it in GitHub Desktop.
R.diff
$ diff R.generated.swift R.working.generated.swift
758c758
< static let showBarcodeScannerList: Rswift.StoryboardSegueIdentifier<CenterContainmentSegue, App.SideMenuControllerSplitter, UIKit.UINavigationController> = Rswift.StoryboardSegueIdentifier(identifier: "ShowBarcodeScannerList")
---
> static let showBarcodeScannerList: Rswift.StoryboardSegueIdentifier<SideMenuController.CenterContainmentSegue, App.SideMenuControllerSplitter, UIKit.UINavigationController> = Rswift.StoryboardSegueIdentifier(identifier: "ShowBarcodeScannerList")
760c760
< static let showContact: Rswift.StoryboardSegueIdentifier<CenterContainmentSegue, App.SideMenuControllerSplitter, UIKit.UINavigationController> = Rswift.StoryboardSegueIdentifier(identifier: "ShowContact")
---
> static let showContact: Rswift.StoryboardSegueIdentifier<SideMenuController.CenterContainmentSegue, App.SideMenuControllerSplitter, UIKit.UINavigationController> = Rswift.StoryboardSegueIdentifier(identifier: "ShowContact")
762c762
< static let showList: Rswift.StoryboardSegueIdentifier<CenterContainmentSegue, App.SideMenuControllerSplitter, UIKit.UINavigationController> = Rswift.StoryboardSegueIdentifier(identifier: "ShowList")
---
> static let showList: Rswift.StoryboardSegueIdentifier<SideMenuController.CenterContainmentSegue, App.SideMenuControllerSplitter, UIKit.UINavigationController> = Rswift.StoryboardSegueIdentifier(identifier: "ShowList")
764c764
< static let showNews: Rswift.StoryboardSegueIdentifier<CenterContainmentSegue, App.SideMenuControllerSplitter, UIKit.UINavigationController> = Rswift.StoryboardSegueIdentifier(identifier: "ShowNews")
---
> static let showNews: Rswift.StoryboardSegueIdentifier<SideMenuController.CenterContainmentSegue, App.SideMenuControllerSplitter, UIKit.UINavigationController> = Rswift.StoryboardSegueIdentifier(identifier: "ShowNews")
766c766
< static let showStatistic: Rswift.StoryboardSegueIdentifier<CenterContainmentSegue, App.SideMenuControllerSplitter, UIKit.UINavigationController> = Rswift.StoryboardSegueIdentifier(identifier: "ShowStatistic")
---
> static let showStatistic: Rswift.StoryboardSegueIdentifier<SideMenuController.CenterContainmentSegue, App.SideMenuControllerSplitter, UIKit.UINavigationController> = Rswift.StoryboardSegueIdentifier(identifier: "ShowStatistic")
768c768
< static let sideMenu: Rswift.StoryboardSegueIdentifier<SideContainmentSegue, App.SideMenuControllerSplitter, MenuController> = Rswift.StoryboardSegueIdentifier(identifier: "SideMenu")
---
> static let sideMenu: Rswift.StoryboardSegueIdentifier<SideMenuController.SideContainmentSegue, App.SideMenuControllerSplitter, MenuController> = Rswift.StoryboardSegueIdentifier(identifier: "SideMenu")
773c773
< static func showBarcodeScannerList(segue: UIKit.UIStoryboardSegue) -> Rswift.TypedStoryboardSegueInfo<CenterContainmentSegue, App.SideMenuControllerSplitter, UIKit.UINavigationController>? {
---
> static func showBarcodeScannerList(segue: UIKit.UIStoryboardSegue) -> Rswift.TypedStoryboardSegueInfo<SideMenuController.CenterContainmentSegue, App.SideMenuControllerSplitter, UIKit.UINavigationController>? {
780c780
< static func showContact(segue: UIKit.UIStoryboardSegue) -> Rswift.TypedStoryboardSegueInfo<CenterContainmentSegue, App.SideMenuControllerSplitter, UIKit.UINavigationController>? {
---
> static func showContact(segue: UIKit.UIStoryboardSegue) -> Rswift.TypedStoryboardSegueInfo<SideMenuController.CenterContainmentSegue, App.SideMenuControllerSplitter, UIKit.UINavigationController>? {
787c787
< static func showList(segue: UIKit.UIStoryboardSegue) -> Rswift.TypedStoryboardSegueInfo<CenterContainmentSegue, App.SideMenuControllerSplitter, UIKit.UINavigationController>? {
---
> static func showList(segue: UIKit.UIStoryboardSegue) -> Rswift.TypedStoryboardSegueInfo<SideMenuController.CenterContainmentSegue, App.SideMenuControllerSplitter, UIKit.UINavigationController>? {
794c794
< static func showNews(segue: UIKit.UIStoryboardSegue) -> Rswift.TypedStoryboardSegueInfo<CenterContainmentSegue, App.SideMenuControllerSplitter, UIKit.UINavigationController>? {
---
> static func showNews(segue: UIKit.UIStoryboardSegue) -> Rswift.TypedStoryboardSegueInfo<SideMenuController.CenterContainmentSegue, App.SideMenuControllerSplitter, UIKit.UINavigationController>? {
801c801
< static func showStatistic(segue: UIKit.UIStoryboardSegue) -> Rswift.TypedStoryboardSegueInfo<CenterContainmentSegue, App.SideMenuControllerSplitter, UIKit.UINavigationController>? {
---
> static func showStatistic(segue: UIKit.UIStoryboardSegue) -> Rswift.TypedStoryboardSegueInfo<SideMenuController.CenterContainmentSegue, App.SideMenuControllerSplitter, UIKit.UINavigationController>? {
808c808
< static func sideMenu(segue: UIKit.UIStoryboardSegue) -> Rswift.TypedStoryboardSegueInfo<SideContainmentSegue, App.SideMenuControllerSplitter, MenuController>? {
---
> static func sideMenu(segue: UIKit.UIStoryboardSegue) -> Rswift.TypedStoryboardSegueInfo<SideMenuController.SideContainmentSegue, App.SideMenuControllerSplitter, MenuController>? {
import Foundation
import SideMenuController
/**
* Workaround to make SideMenuController compatible with R.swift
* Code generated by R.swift triggers a bug in Swift causing a
* "CenterContainmentSegue is not a member type of SideMenuController"
* The FAQ suggests leaving the `module` field in storyboard segues empty,
* but this causes an NSInternalConsistencyException "Could not create a segue of
* class '(null)'"
* https://github.com/mac-cain13/R.swift/blob/master/Documentation/QandA.md#how-to-use-classes-with-the-same-name-as-their-module
*/
//swiftlint:disable:next type_name
typealias _CenterContainmentSegue = CenterContainmentSegue
//swiftlint:disable:next type_name
typealias _SideContainmentSegue = SideContainmentSegue
extension SideMenuController {
typealias CenterContainmentSegue = _CenterContainmentSegue
typealias SideContainmentSegue = _SideContainmentSegue
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment