feat: add find keyboard shortcut

This commit is contained in:
dscyrescotti
2024-07-14 16:03:05 +07:00
parent 00d9a8e5f9
commit ca93472cd4
12 changed files with 123 additions and 17 deletions
@@ -0,0 +1,33 @@
//
// NavigationSplitViewVisibility++.swift
// Memola
//
// Created by Dscyre Scotti on 7/14/24.
//
import SwiftUI
extension NavigationSplitViewVisibility: RawRepresentable {
public init?(rawValue: Int) {
switch rawValue {
case 0: self = .all
case 1: self = .automatic
case 2: self = .detailOnly
case 3: self = .doubleColumn
default: self = .all
}
}
public var rawValue: Int {
switch self {
case .all: 0
case .automatic: 1
case .detailOnly: 2
case .doubleColumn: 3
default: -1
}
}
public typealias RawValue = Int
}