mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-07-13 08:12:54 +02:00
feat: add new memo shortcut
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// ActiveSceneKey.swift
|
||||
// Memola
|
||||
//
|
||||
// Created by Dscyre Scotti on 7/12/24.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct ActiveSceneKey: FocusedValueKey {
|
||||
typealias Value = AppScene
|
||||
}
|
||||
|
||||
extension FocusedValues {
|
||||
var activeSceneKey: AppScene? {
|
||||
get { self[ActiveSceneKey.self] }
|
||||
set { self[ActiveSceneKey.self] = newValue }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// AppScene.swift
|
||||
// Memola
|
||||
//
|
||||
// Created by Dscyre Scotti on 7/12/24.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
enum AppScene {
|
||||
case memos
|
||||
case trash
|
||||
case memo
|
||||
}
|
||||
Reference in New Issue
Block a user