mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-09-23 03:28:35 +00:00
macos: redo all the split views
This commit is contained in:
@@ -7,7 +7,7 @@ import SwiftUI
|
||||
/// as time goes on. For example, the splitter divider size and styling is all hardcoded.
|
||||
struct SplitView<L: View, R: View>: View {
|
||||
/// Direction of the split
|
||||
let direction: Direction
|
||||
let direction: SplitViewDirection
|
||||
|
||||
/// The left and right views to render.
|
||||
let left: L
|
||||
@@ -41,7 +41,7 @@ struct SplitView<L: View, R: View>: View {
|
||||
}
|
||||
}
|
||||
|
||||
init(_ direction: Direction, @ViewBuilder left: (() -> L), @ViewBuilder right: (() -> R)) {
|
||||
init(_ direction: SplitViewDirection, @ViewBuilder left: (() -> L), @ViewBuilder right: (() -> R)) {
|
||||
self.direction = direction
|
||||
self.left = left()
|
||||
self.right = right()
|
||||
@@ -114,8 +114,6 @@ struct SplitView<L: View, R: View>: View {
|
||||
}
|
||||
}
|
||||
|
||||
extension SplitView {
|
||||
enum Direction {
|
||||
case horizontal, vertical
|
||||
}
|
||||
enum SplitViewDirection {
|
||||
case horizontal, vertical
|
||||
}
|
||||
|
Reference in New Issue
Block a user