Skip to content

support keyboardLayoutGuide#238

Merged
lucdion merged 12 commits into
layoutBox:masterfrom
baekteun:master
Feb 1, 2022
Merged

support keyboardLayoutGuide#238
lucdion merged 12 commits into
layoutBox:masterfrom
baekteun:master

Conversation

@baekteun

Copy link
Copy Markdown
Contributor

No description provided.

@lucdion lucdion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this addition. Could you please document this new property in the section https://github.com/layoutBox/PinLayout#safearea-readable-and-layout-margins 🙏

@baekteun

Copy link
Copy Markdown
Contributor Author

Oh?

Comment thread Sources/PinLayout.swift Outdated
}

#if os(iOS)
public var keyboardLayout: PEdgeInsets {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After more thinking, it would better match other properties if we would name it keyboardMargins

  • UIView.readableContentGuide is named pin.readableMargins
  • UIView.layoutMarginsGuide is named pin.layoutMargins

Then I would propose

  • UIView.keyboardLayoutGuide named pin.keyboardMargins

What do you think?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea.

@baekteun

Copy link
Copy Markdown
Contributor Author

"value of type 'UIView' has no member 'keyboardLayoutGuide'".?

@baekteun

Copy link
Copy Markdown
Contributor Author

Umm... Is it because of the version?

@lucdion

lucdion commented Jan 31, 2022

Copy link
Copy Markdown
Member

This is strange because Travis is using osx_image: xcode13 and this build step xcodebuild build -project PinLayout.xcodeproj -scheme PinLayout-iOS -sdk iphonesimulator15.0 -destination 'platform=iOS Simulator,name=iPhone 8,OS=15.0'

So this should work. Does it compiles correctly on your system?

@baekteun

Copy link
Copy Markdown
Contributor Author

Looking at Travis, I think the version of Xcode is 12.5.
스크린샷 2022-02-01 오전 2 43 10

Looking at build-ci.sh, I think the version of OS is 14.5.
스크린샷 2022-02-01 오전 2 44 16

Could you check it again?

@lucdion

lucdion commented Jan 31, 2022

Copy link
Copy Markdown
Member

Oups, sorry, I forget to open the PR. Locally I had those modifications. I just opened this PR #239

@baekteun

Copy link
Copy Markdown
Contributor Author

Phew

@lucdion

lucdion commented Jan 31, 2022

Copy link
Copy Markdown
Member

OK, I have merged #239, you can update your branch.

@baekteun

Copy link
Copy Markdown
Contributor Author

🛌

Comment thread Sources/PinLayout.swift Outdated
apply()
}

#if os(iOS)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Detail, but you could move this block just below public var layoutMargins: PEdgeInsets, so the proprities are declared from the most useful property order? Thanks

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@lucdion lucdion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent. Thanks for the addition 👍

@lucdion lucdion merged commit 2e7f584 into layoutBox:master Feb 1, 2022
@lucdion

lucdion commented Feb 1, 2022

Copy link
Copy Markdown
Member

New release including your change https://github.com/layoutBox/PinLayout/releases/tag/1.10.1
Thanks!

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

Successfully merging this pull request may close these issues.

2 participants