codable extension public

This commit is contained in:
Madhas 2018-05-25 18:26:02 +03:00
parent 3ef5795bfc
commit d408d1eed6
2 changed files with 3 additions and 3 deletions

View File

@ -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)
}
}

View File

@ -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 [:]
}