Skip to content

Feature Request: Making rows more scalable #8

@Joebayld

Description

@Joebayld

I was thinking about how I can introduce more custom types of rows without modifying too much of the source code. I came up with something different..

What if the Row protocol had a method to generate it's own UITableViewCell. That way the logic for the row generation is in the object and not the QuickTableViewController.

example:

extension Row {
    
    /// Return a customized cell for the table
    public func tableCell() -> UITableViewCell {
        return UITableViewCell()
    }
    
}

I want to make a row that allows selection. Essentially a NavigationRow with the option to change the accessoryType.

My first idea might just be nonsense... It might just be easier to add a accessoryType variable to navigation row, and have the view controller check if the accessory type is set. Ideally I want to just view a checkmark... See attached image.. Thoughts?

check

Update:

Take a look at this commit I made. It has a few major changes. I don't have pods installed so I removed those files. I also don't think the master framework would want to use any pods, but I could be wrong..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions