I have a Swift class that inherits from UIViewController, and I was wondering if there was any way that I could use the same class on a UITableViewController to avoid repetition.
class GradientViewController: UIViewController {
// My class
}
Are there any ways to use this class on a UITableViewController, like so?
class MyTableViewController: GradientViewController {
// My table view controller
}
Thanks in advance