PinLayout icon indicating copy to clipboard operation
PinLayout copied to clipboard

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

Open jife-archive opened this issue 11 months ago • 1 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]

jife-archive avatar Dec 27 '24 06:12 jife-archive