Skip to content

Commit

Permalink
Fix issue where example app could not build with Swift 2.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZevEisenberg committed Feb 19, 2017
1 parent d2e2cdd commit 830c34a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Example-iOS/DemoStrings.swift
Expand Up @@ -405,7 +405,11 @@ enum DemoStrings {
],
]

return stringsArrays.map { $0.joined().styled(with: style) }
#if swift(>=3.0)
return stringsArrays.map { $0.joined().styled(with: style) }
#else
return stringsArrays.map { $0.joinWithSeparator("").styled(with: style) }
#endif
}()

}
Expand Down

0 comments on commit 830c34a

Please sign in to comment.