layoutBox/PinLayout

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

Opened this issue · 0 comments

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]