Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jife-archive opened this issue Dec 27, 2024 · 0 comments

Comments

@jife-archive
Copy link

jife-archive commented Dec 27, 2024

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant