From 5a86465d26ae3ea69c652df0ff868da770117565 Mon Sep 17 00:00:00 2001 From: Artur Mkrtchyan Date: Thu, 11 Jun 2020 22:39:41 +0400 Subject: [PATCH] RealmSwift 5.0.3 --- README.md | 4 ++-- Unrealm.podspec | 4 ++-- Unrealm/Classes/Swift/Unrealm.swift | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5921657..7d5852e 100755 --- a/README.md +++ b/README.md @@ -21,8 +21,8 @@ Platform - -Platform + +Platform

diff --git a/Unrealm.podspec b/Unrealm.podspec index a211fe7..d038d0e 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.3.2' + s.version = '1.3.5' 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.1' + s.dependency 'RealmSwift', '5.0.3' s.dependency 'RuntimeNew', '2.1.5' end diff --git a/Unrealm/Classes/Swift/Unrealm.swift b/Unrealm/Classes/Swift/Unrealm.swift index 4599608..32ab9b1 100644 --- a/Unrealm/Classes/Swift/Unrealm.swift +++ b/Unrealm/Classes/Swift/Unrealm.swift @@ -237,7 +237,7 @@ public extension RealmableBase { - parameter block: The block to call with information about changes to the object. - returns: A token which must be held for as long as you want updates to be delivered. */ - func observe(_ block: @escaping (ObjectChange) -> Void) -> NotificationToken { + func observe(_ block: @escaping (ObjectChange) -> Void) -> NotificationToken { guard let info = try? typeInfo(of: type(of: self)), info.kind == .class else { fatalError("Unrealm: Only class instances can observe for changes") }