Skip to content

Commit

Permalink
0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tattn committed Apr 29, 2022
1 parent 548ca56 commit 5122e27
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 4 deletions.
24 changes: 24 additions & 0 deletions app/xcode/Sources/VCamUI/Extensions/View+.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// View+.swift
//
//
// Created by Tatsuya Tanaka on 2022/04/29.
//

import SwiftUI

public extension View {
@ViewBuilder @inlinable
func onTapGestureWithKeyboardShortcut(_ keyboardShortcut: KeyboardShortcut, perform: @escaping () -> Void) -> some View {
onTapGesture(perform: perform)
.background(
Button {
perform()
} label: {
EmptyView()
}
.buttonStyle(.plain)
.keyboardShortcut(.defaultAction)
)
}
}
10 changes: 9 additions & 1 deletion app/xcode/Sources/VCamUILocalization/Generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public enum L10n {
public static let anamorphicRatio = LocalizedString(lookupKey: "anamorphicRatio")
/// Any problem?
public static let anyProblem = LocalizedString(lookupKey: "anyProblem")
/// Avatar
public static let avatar = LocalizedString(lookupKey: "avatar")
/// Background color
public static let backgroundColor = LocalizedString(lookupKey: "backgroundColor")
/// Background image
Expand Down Expand Up @@ -180,7 +182,7 @@ public enum L10n {
public static let micOrCamera = LocalizedString(lookupKey: "micOrCamera")
/// Motion
public static let motion = LocalizedString(lookupKey: "motion")
/// Reset position
/// Reset
public static let moveInitialPosition = LocalizedString(lookupKey: "moveInitialPosition")
/// New preset
public static let newPreset = LocalizedString(lookupKey: "newPreset")
Expand All @@ -190,6 +192,8 @@ public enum L10n {
public static let nod = LocalizedString(lookupKey: "nod")
/// None
public static let `none` = LocalizedString(lookupKey: "none")
/// Object
public static let object = LocalizedString(lookupKey: "object")
/// Open preferences
public static let openPreference = LocalizedString(lookupKey: "openPreference")
/// Optimize meshes (Recommended)
Expand Down Expand Up @@ -228,6 +232,8 @@ public enum L10n {
public static let save = LocalizedString(lookupKey: "save")
/// Screen
public static let screen = LocalizedString(lookupKey: "screen")
/// Screen
public static let screenCapture = LocalizedString(lookupKey: "screenCapture")
/// Screen Effect
public static let screenEffect = LocalizedString(lookupKey: "screenEffect")
/// s
Expand Down Expand Up @@ -292,6 +298,8 @@ public enum L10n {
public static func useEmotionBy(_ p1: Any) -> ArgumentsLocalizedString {
ArgumentsLocalizedString("useEmotionBy %@", "useEmotionBy \(String(describing: p1))", String(describing: p1))
}
/// Video Capture
public static let videoCapture = LocalizedString(lookupKey: "videoCapture")
/// Video Capture Device
public static let videoCaptureDevice = LocalizedString(lookupKey: "videoCaptureDevice")
/// Video Format
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"default" = "Default";
"cancel" = "Cancel";
"close" = "Close";
"object" = "Object";
"avatar" = "Avatar";
"image" = "Image";
"screen" = "Screen";
"clipboard" = "Clipboard";
Expand Down Expand Up @@ -57,9 +59,11 @@
"addImage" = "Add an image";
"addScreenCapture" = "Add a screen";
"addVideoCapture" = "Add a video capture";
"screenCapture" = "Screen";
"videoCapture" = "Video Capture";
"deleteSelectedObject" = "Delete the selected object";

"moveInitialPosition" = "Reset position";
"moveInitialPosition" = "Reset";

// MARK: - Preference

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
Localizable.strings
VCam

Expand All @@ -11,6 +11,8 @@
"default" = "デフォルト";
"cancel" = "キャンセル";
"close" = "閉じる";
"object" = "オブジェクト";
"avatar" = "アバター";
"image" = "画像";
"screen" = "画面";
"clipboard" = "クリップボード";
Expand Down Expand Up @@ -57,9 +59,11 @@
"addImage" = "画像追加";
"addScreenCapture" = "画面キャプチャ追加";
"addVideoCapture" = "映像キャプチャ追加";
"screenCapture" = "画面キャプチャ";
"videoCapture" = "映像キャプチャ";
"deleteSelectedObject" = "選択中のオブジェクトを削除する";

"moveInitialPosition" = "初期位置に移動";
"moveInitialPosition" = "初期位置";

// MARK: - Preference

Expand Down

0 comments on commit 5122e27

Please sign in to comment.