StretchyHeaderView
StretchyHeaderView copied to clipboard
NSForegroundColorAttributeName was renamed and won't compile in Swift 4 builds
When trying to build a project using Swift 4 / Xcode 9, encounter the following error:
[Path/To/Project]/Pods/StretchyHeaderView/StretchyHeaderView/Classes/UINavigationBar+Alpha.swift:63:37: 'NSForegroundColorAttributeName' has been renamed to 'NSAttributedStringKey.foregroundColor'
This causes the build to fail.
Current workaround is to unlock the file and use Xcode's 'fix-it', or manually change the value. Everything builds properly after that. Would be nice to have an official update that addresses this though :)
Thanks. I will upgrade to Swift 4 this week.
Upgrated to swift 4 https://github.com/sunlubo/StretchyHeaderView/pull/6