Store Swift Type in variable <p>I have a data model for a <code>UITableViewCell</code> that looks like this:</p> <pre><code>class SettingsContentRow { var title: String var cellType: Type // How do i do this? var action:((sender: UITableViewCell.Type) -&gt; ())? var identifier: String { get { return NSStringFromClass(cellType) } } init(title: String, cellType: Type) { self.title = title self.cellType= cellType } } </code></pre> <p>The idea is to put these in an array to facilitate building a settings view using a <code>UITableViewController</code>, and when requesting a cell i can just query the model for both the identifier and the cell <code>Type</code>. But i cannot figure out what keyword to use instead of <code>Type</code>. I have tried <code>Type</code>, <code>AnyClass</code>, <code>UITableViewCell.Type</code> and they all give rise to type assignment errors when i try to instantiate the model class.</p>