Skip to content

UIButtonConfiguration symbolContentTransition has wrong type #23925

@tipa

Description

@tipa

Apple platform

iOS

Framework version

net9.0-ios26.0

Description

iOS 26 has a new symbolContentTransition property on UIButtonConfiguration. The type should be UISymbolContentTransition.
In the .NET bindings the type appears to be of NSSymbolContentTransition:

  [SupportedOSPlatform("ios26.0")]
  [SupportedOSPlatform("tvos26.0")]
  [SupportedOSPlatform("maccatalyst26.0")]
  public virtual NSSymbolContentTransition? SymbolContentTransition { [Export("symbolContentTransition", ArgumentSemantic.Retain)] get; [Export("setSymbolContentTransition:", ArgumentSemantic.Retain)] set; }

Steps to Reproduce

I tried using that type instead like this:

config.SymbolContentTransition = NSSymbolReplaceContentTransition.Create();

but it crashes with:
ObjCRuntime.ObjCException: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -[NSSymbolReplaceContentTransition contentTransition]: unrecognized selector sent to instance 0x6000003a2de0

Did you find any workaround?

No response

Build logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-bindingsbugIf an issue is a bug or a pull request a bug fix

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions