lexrus / LTMorphingLabel

[EXPERIMENTAL] Graceful morphing effects for UILabel written in Swift.
MIT License
8.07k stars 782 forks source link

Update to Swift3 version issue #76

Closed lucasjinreal closed 7 years ago

lucasjinreal commented 7 years ago

As the Swift3 becomes a more wide and seems have no big change, strongly recommend author update this excellent library to Swift3.

gitIkerKristian commented 7 years ago

When you install latest version LTMorphingLabel (0.3.0), and convert it to Swift 3.0 (Edit -> Convert -> To Current Swift Syntax...), XCode will create 2 build errors: Expression type 'Array' is ambiguous without more context

File: LTStringDiffResult.swift Lines: 40 and 52

Quick and easy solution is to remove <Any> and as! [LTCharacterDiffResult] from those 2 lines.

lexrus commented 7 years ago

The master branch is upgrade to Swift 3. You can upgrade to the latest release. Thanks.