Skip to content

[SR-16033] UIView.maximumContentSizeCategory is not marked with @available #58294

@swift-ci

Description

@swift-ci
Previous ID SR-16033
Radar None
Original Reporter huajason (JIRA User)
Type Bug
Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee None
Priority Medium

md5: f27c6b18538343c1162de83b6bf41058

Issue Description:

According to the documentation, the UIView property maximumContentSizeCategory is only available for iOS 15+, but the property is not marked with @available for iOS 15 or above.

1. Create an iOS project with the target iOS set to iOS 14.

2. Create a view and set the max contentSizeCategory

let view = UIView()
view.maximumContentSizeCategory = .extraLarge

This does not produce an availability warning and crashes when running on iOS 14.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions