Andrey M. Andrey M. - 3 months ago 12x
Swift Question

How to remove gray section bar in Eureka

I use Eureka library and with this code:

class MainViewController: FormViewController {

var firstName = ""

override func viewDidLoad() {
navigationItem.title = "Форма заполнения"
form +++=


<<< TextRow() { row in
row.title = "Имя"
row.placeholder = "Введите свое имя"
}.onChange { [weak self] row in
self?.firstName = row.value!

i got the following picture:

enter image description here

And i want to remove the gray bar between navigation panel and row.


If what you mean is to use Plain Style TableView add this to your code

override func viewDidLoad() {
        if tableView == nil {
            tableView = UITableView(frame: view.bounds, style: UITableViewStyle.Plain)
            tableView?.autoresizingMask = UIViewAutoresizing.FlexibleWidth.union(.FlexibleHeight)
        // my code ...

Taken from