codable extension public
This commit is contained in:
parent
3ef5795bfc
commit
d408d1eed6
|
|
@ -210,7 +210,7 @@ final public class PaginationWrapper<Cursor: ResettableRxDataSourceCursor, Deleg
|
|||
self.wrappedView.footerView = retryButton
|
||||
|
||||
let newContentOffset = CGPoint(x: 0, y: scrollView.contentOffset.y + retryButtonHeight)
|
||||
|
||||
|
||||
scrollView.setContentOffset(newContentOffset, animated: true)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
extension Encodable {
|
||||
public extension Encodable {
|
||||
|
||||
func toJSON(with encoder: JSONEncoder = JSONEncoder()) -> [String: Any] {
|
||||
public func toJSON(with encoder: JSONEncoder = JSONEncoder()) -> [String: Any] {
|
||||
guard let data = try? encoder.encode(self) else {
|
||||
return [:]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue