Skip to content

'StringStyle' is ambiguous for type lookup #416

Open

Description

@mvpaudrey

iOS 15 SDK introduced StringStyle struct. So it's conflicting with the one from the framework and causes this error:
'StringStyle' is ambiguous for type lookup in this context

Activity

  1. ZevEisenberg commented on Sep 21, 2021

    @ZevEisenberg
    Collaborator

    We might want to consider renaming it, because this will affect everyone targeting iOS 15+. In the meantime, you can specify the module like this: BonMot.StringStyle. You can also rename it globally by making a typealias, like typealias GangnamStyle = BonMot.StringStyle.

  2. chrisballinger commented on Sep 21, 2021

    @chrisballinger
    Contributor

    This is mentioned at the top of the README now: https://github.com/Rightpoint/BonMot#attributedstring

    Long term we should probably rename ours with a backwards-compatibility shim / deprecation warning to avoid conflict with the system framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions