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

Add holding priority view modifier #1265

Merged
merged 1 commit into from
May 10, 2023

Conversation

Wouter01
Copy link
Member

Description

This PR adds a holdingPriority view modifier, to specify the NSSplitViewItem.holdingPriority property in SwiftUI:

func holdingPriority(_ priority: NSLayoutConstraint)) -> some View

It is applied in WorkspaceView, to prevent the terminal from resizing when resizing the window.

Checklist

  • I read and understood the contributing guide as well as the code of conduct
  • The issues this PR addresses are related to each other
  • My changes generate no new warnings
  • My code builds and runs on my machine
  • My changes are all related to the related issue above
  • I documented my code

Screenshots

Signed-off-by: Wouter01 <wouterhennen@gmail.com>
@Wouter01 Wouter01 added the enhancement New feature or request label May 10, 2023
@austincondiff austincondiff merged commit 6c54323 into CodeEditApp:main May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants