Skip to content

Commit 472045a

Browse files
author
Dai Ho V
authored
Merge pull request #34: Xcode 10 Invalid redeclaration of '<-'
bugfix - issue Xcode 10 Invalid redeclaration of '<-'
2 parents 77c9cff + 924b6f4 commit 472045a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

RealmS.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'RealmS'
3-
s.version = '4.0.0'
3+
s.version = '4.0.1'
44
s.license = 'MIT'
55
s.summary = 'RealmS'
66
s.homepage = 'https://github.com/tsrnd/realms-ios'

Sources/Operator.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public func <- <T: Object>(left: inout T?, right: Map) where T: BaseMappable {
3232
}
3333
}
3434

35+
#if !(swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0)))
3536
/**
3637
Map to implicitly unwrapped optional BaseMappable Object.
3738
- parammeter T: BaseMappable Object.
@@ -42,6 +43,7 @@ public func <- <T: Object>(left: inout T!, right: Map) where T: BaseMappable {
4243
var object: T? = left
4344
object <- right
4445
}
46+
#endif
4547

4648
/**
4749
Map to List of BaseMappable Object.

0 commit comments

Comments
 (0)