Classes

The following classes are available globally.

Custom Segue Placeholder Class

  • This gives us a class to use for custom segues.

    Declaration

    Swift

    @MainActor
    open class SwipeTabSegue : UIStoryboardSegue

Baseline View Controller Class

Main View Controller Class

  • This implements an instance of a UIPageViewController, as well as a UIToolbar instance. The toolbar acts in the same manner as a UITabBar, and is displayed either below (default), or above the page view controller.

    The page view controller provides the “swipe” action, and the toolbar provides the “tab bar” action.

    This results in behavior like Android. In Android, you can swipe between tabs, as well as select them directly.

    You can have the “tab bar” displayed above the page, as in Android, or below (default), as in iOS.

    This is a lot more limited than a real UITabBarController, but it should be useful for most implementations. You do have access to both the page view controller, and the toolbar, if you want to do more customization.

    It will allow you to propagate a navigation controller, applied to the container, into internal views. That’s always an annoying issue with UITabBarController. You need to remember that the tab controller is hosting the navigation bar; not your embedded controller.

    See more

    Declaration

    Swift

    @IBDesignable
    @MainActor
    open class LGV_SwipeTabViewController : UIViewController
    extension LGV_SwipeTabViewController: UIPageViewControllerDataSource
    extension LGV_SwipeTabViewController: UIPageViewControllerDelegate