Skip to content

“Error: ‘CGRect’ has no member ‘top’ when referencing PinLayout’s keyboardArea” #282

@jife-archive

Description

@jife-archive

Description

I’m trying to pin a view to the top of the keyboard area using PinLayout. The code in the README looks like this:
container.pin.bottom(view.pin.keyboardArea.top)

However, it fails to compile with the error:
value of type 'CGRect' has no member 'top'

It seems that view.pin.keyboardArea returns a CGRect, and CGRect doesn’t provide a built-in top property. In other words, the example from the README is currently not working as intended.

Environment
• PinLayout version: [e.g. 1.10.6]
• iOS version: [e.g. iOS 16.4]
• Swift version: [e.g. Swift 5.5]
• Xcode version: [e.g. Xcode 16.1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions