Home>

I often use RealmSwift when developing iOS apps, but I do common processing forList,LinkingObjects,ResultsThere are times when I want to apply.
For example, when:

// When I want to write a program that sends objects to the transition destination and displays all objects
        var objects:/* I want to fix the type here */= returnObjects () // function
        performSegue (withIdentifier: "ShowAllObjects", sender: objects)
        func returnObjects ()->/* I want to fix the type here */{
          / * I want to return all objects in a common type in List, LinkingObjects and Results. * /
        }

I'd be happy if you could tell me how to ask questions. (I don't feel like writing well)
In short, what I want to do is "cast to one type to handleList,LinkingObjects,Resultsin common" .