Skip to content

Add holding priority view modifier - #1265

Merged
austincondiff merged 1 commit into
CodeEditApp:mainfrom
Wouter01:splitview-holding-priority
May 10, 2023
Merged

austincondiff merged 1 commit into
CodeEditApp:mainfrom
Wouter01:splitview-holding-priority

Conversation

@Wouter01

Copy link
Copy Markdown
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