maxsokolov / TableKit

Type-safe declarative table views.
MIT License
706 stars 74 forks source link

Prepend TableDirector mutable functions with @discardableResult #46

Closed Wisors closed 8 years ago

Wisors commented 8 years ago

Swift 3 version produces warnings about unused return values. For example, you need to change next function

    open func append(section: TableSection) -> Self {

        _ = append(sections: [section])
        return self
    }

to

 @discardableResult  open func append(section: TableSection) -> Self {

        _ = append(sections: [section])
        return self
    }
maxsokolov commented 8 years ago

Fixed.