Skip to content

Commit e95ea83

Browse files
committed
feat: placeholder
Signed-off-by: Lessica <82flex@gmail.com>
1 parent 2d7de34 commit e95ea83

File tree

11 files changed

+39
-28
lines changed

11 files changed

+39
-28
lines changed

TrollFools.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
614C0C6C2D7D72D4007E9184 /* IndexableScroller.swift in Sources */ = {isa = PBXBuildFile; fileRef = 614C0C6B2D7D72C7007E9184 /* IndexableScroller.swift */; };
4848
6168001B2D364DD400DF485F /* StripedTextTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6168001A2D364DD400DF485F /* StripedTextTableViewController.m */; };
4949
6168001D2D3652B600DF485F /* LogsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6168001C2D3652B100DF485F /* LogsView.swift */; };
50+
61743CDA2D882CE80032696C /* PlaceholderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 61743CD92D882CE40032696C /* PlaceholderView.swift */; };
5051
61946B262D2FD8AB009E0AC4 /* OrderedCollections in Frameworks */ = {isa = PBXBuildFile; productRef = 61946B252D2FD8AB009E0AC4 /* OrderedCollections */; };
5152
61C7D54A2D82D8E40064D626 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 61C7D5462D82D5C60064D626 /* InfoPlist.strings */; };
5253
61C7D54C2D82DBAD0064D626 /* DisclaimerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 61C7D54B2D82DBAC0064D626 /* DisclaimerView.swift */; };
@@ -154,6 +155,7 @@
154155
616800192D364DD400DF485F /* StripedTextTableViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StripedTextTableViewController.h; sourceTree = "<group>"; };
155156
6168001A2D364DD400DF485F /* StripedTextTableViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StripedTextTableViewController.m; sourceTree = "<group>"; };
156157
6168001C2D3652B100DF485F /* LogsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LogsView.swift; sourceTree = "<group>"; };
158+
61743CD92D882CE40032696C /* PlaceholderView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlaceholderView.swift; sourceTree = "<group>"; };
157159
61C7D5452D82D5C60064D626 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
158160
61C7D5472D82D5C80064D626 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/InfoPlist.strings"; sourceTree = "<group>"; };
159161
61C7D5482D82D5C90064D626 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/InfoPlist.strings; sourceTree = "<group>"; };
@@ -288,6 +290,7 @@
288290
6168001C2D3652B100DF485F /* LogsView.swift */,
289291
6124A0772CD232D400C52253 /* OptionCell.swift */,
290292
CCB6A1182C4A58C7000D75B0 /* OptionView.swift */,
293+
61743CD92D882CE40032696C /* PlaceholderView.swift */,
291294
6124A07E2CD233BA00C52253 /* PlugInCell.swift */,
292295
CC19E4BA2C561D7300E0F1B5 /* SettingsView.swift */,
293296
CC1548D22C4A743200A4173E /* SuccessView.swift */,
@@ -632,6 +635,7 @@
632635
CC19E4BB2C561D7300E0F1B5 /* SettingsView.swift in Sources */,
633636
61EFA36F2D30338B00159442 /* InjectorV3+Bundle.swift in Sources */,
634637
61EFA3642D30267E00159442 /* InjectorV3.swift in Sources */,
638+
61743CDA2D882CE80032696C /* PlaceholderView.swift in Sources */,
635639
61C7D54C2D82DBAD0064D626 /* DisclaimerView.swift in Sources */,
636640
6124A07F2CD233BA00C52253 /* PlugInCell.swift in Sources */,
637641
61EFA37B2D31165700159442 /* InjectorV3+Backup.swift in Sources */,

TrollFools/AppListView.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,11 @@ struct AppListView: View {
152152
}
153153
}
154154
}
155+
156+
// Detail view shown when nothing has been selected
157+
if !appList.isSelectorMode {
158+
PlaceholderView()
159+
}
155160
}
156161
}
157162

TrollFools/PlaceholderView.swift

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//
2+
// PlaceholderView.swift
3+
// TrollFools
4+
//
5+
// Created by 82Flex on 3/17/25.
6+
//
7+
8+
import SwiftUI
9+
10+
struct PlaceholderView: View {
11+
var body: some View {
12+
Text(NSLocalizedString("Select an application to view details.", comment: ""))
13+
.font(.headline)
14+
.foregroundColor(.secondary)
15+
.multilineTextAlignment(.center)
16+
.padding()
17+
}
18+
}

TrollFools/en.lproj/InfoPlist.strings

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
//
2-
// InfoPlist.strings
3-
// TrollFools
4-
//
5-
// Created by 82Flex on 3/13/25.
6-
//
7-
81
"CFBundleDisplayName" = "TrollFools";

TrollFools/en.lproj/Localizable.strings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@
190190
/* No comment provided by engineer. */
191191
"Search…" = "Search…";
192192

193+
/* No comment provided by engineer. */
194+
"Select an application to view details." = "Select an application to view details.";
195+
193196
/* No comment provided by engineer. */
194197
"Select Application to Inject" = "Select Application to Inject";
195198

TrollFools/it.lproj/InfoPlist.strings

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
//
2-
// InfoPlist.strings
3-
// TrollFools
4-
//
5-
// Created by 82Flex on 3/13/25.
6-
//
7-
81
"CFBundleDisplayName" = "TrollFools";

TrollFools/it.lproj/Localizable.strings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@
190190
/* No comment provided by engineer. */
191191
"Search…" = "Cerca…";
192192

193+
/* TODO */
194+
"Select an application to view details." = "Select an application to view details.";
195+
193196
/* No comment provided by engineer. */
194197
"Select Application to Inject" = "Scegli Applicazione da Iniettare";
195198

TrollFools/vi.lproj/InfoPlist.strings

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
//
2-
// InfoPlist.strings
3-
// TrollFools
4-
//
5-
// Created by 82Flex on 3/13/25.
6-
//
7-
81
"CFBundleDisplayName" = "TrollFools";

TrollFools/vi.lproj/Localizable.strings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@
190190
/* No comment provided by engineer. */
191191
"Search…" = "Tìm kiếm…";
192192

193+
/* TODO */
194+
"Select an application to view details." = "Select an application to view details.";
195+
193196
/* No comment provided by engineer. */
194197
"Select Application to Inject" = "Chọn ứng dụng để tiêm";
195198

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
//
2-
// InfoPlist.strings
3-
// TrollFools
4-
//
5-
// Created by 82Flex on 3/13/25.
6-
//
7-
81
"CFBundleDisplayName" = "巨魔注入器";

0 commit comments

Comments
 (0)