@@ -253,6 +253,7 @@ open class ScrollStack: UIScrollView, UIScrollViewDelegate {
253253 /// Remove all existing rows and put in place the new list based upon passed views.
254254 ///
255255 /// - Parameter views: views to set.
256+ @discardableResult
256257 open func setRows( views: [ UIView ] ) -> [ ScrollStackRow ] {
257258 removeAllRows ( animated: false )
258259 return addRows ( views: views)
@@ -267,6 +268,7 @@ open class ScrollStack: UIScrollView, UIScrollViewDelegate {
267268 /// - location: location inside the stack of the new row.
268269 /// - animated: `true` to animate operation, by default is `false`.
269270 /// - completion: completion: optional completion callback to call at the end of insertion.
271+ @discardableResult
270272 open func addRow( view: UIView , at location: InsertLocation = . bottom, animated: Bool = false , completion: ( ( ) -> Void ) ? = nil ) -> ScrollStackRow ? {
271273 guard let index = indexForLocation ( location) else {
272274 return nil
@@ -280,6 +282,7 @@ open class ScrollStack: UIScrollView, UIScrollViewDelegate {
280282 /// - Parameter controllers: controllers to add as rows.
281283 /// - Parameter location: location inside the stack of the new row.
282284 /// - Parameter animated: `true` to animate operatio, by default is `false`.
285+ @discardableResult
283286 open func addRows( views: [ UIView ] , at location: InsertLocation = . bottom, animated: Bool = false ) -> [ ScrollStackRow ] {
284287 enumerateItems ( views, insertAt: location) {
285288 addRow ( view: $0, at: location, animated: animated)
0 commit comments