Skip to content

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

@aurora14

Description

@aurora14

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions