diff --git a/README.md b/README.md index e0ee1f3..9e33328 100755 --- a/README.md +++ b/README.md @@ -21,8 +21,8 @@ Platform - -Platform + +Platform

diff --git a/Unrealm.podspec b/Unrealm.podspec index b9a7746..a211fe7 100755 --- a/Unrealm.podspec +++ b/Unrealm.podspec @@ -9,7 +9,7 @@ Pod::Spec.new do |s| s.name = 'Unrealm' s.swift_version = '5.1' - s.version = '1.2.2' + s.version = '1.3.2' s.summary = 'Unrealm is an extension on RealmCocoa, which enables Swift native types to be saved in Realm.' s.description = <<-DESC Unrealm enables you to easily store Swift native Classes, Structs and Enums into Realm. @@ -34,6 +34,6 @@ Works perfect with Codables and Optionals! s.source_files = 'Unrealm/Classes/**/*.{h,m,swift}' - s.dependency 'RealmSwift', '4.4.0' + s.dependency 'RealmSwift', '4.4.1' s.dependency 'RuntimeNew', '2.1.5' end diff --git a/Unrealm/Classes/Swift/Unrealm.swift b/Unrealm/Classes/Swift/Unrealm.swift index 2f19bbc..4599608 100644 --- a/Unrealm/Classes/Swift/Unrealm.swift +++ b/Unrealm/Classes/Swift/Unrealm.swift @@ -372,7 +372,7 @@ public extension Object { func toRealmable() -> RealmableBase? { let objTypeString = self.typeString() ?? "" - if let type = objectsAndRealmables.filter({objTypeString.contains($0.key)}).map{($0, $1)}.sorted(by: {$0.0 > $1.0}).first?.1 { + if let type = objectsAndRealmables.filter({objTypeString.contains($0.key)}).map({($0, $1)}).sorted(by: {$0.0 > $1.0}).first?.1 { let convertedObj = self.toRealmable(of: type) return convertedObj as? RealmableBase }