StretchyHeaderView icon indicating copy to clipboard operation
StretchyHeaderView copied to clipboard

NSForegroundColorAttributeName was renamed and won't compile in Swift 4 builds

Open aurora14 opened this issue 7 years ago • 2 comments

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 :)

aurora14 avatar Oct 12 '17 00:10 aurora14

Thanks. I will upgrade to Swift 4 this week.

sunlubo avatar Oct 23 '17 13:10 sunlubo

Upgrated to swift 4 https://github.com/sunlubo/StretchyHeaderView/pull/6

4taras4 avatar Oct 30 '17 20:10 4taras4