Skip to content

Commit d08d2d3

Browse files
committed
move and fix the UnselectedView
rebase main
1 parent 112829b commit d08d2d3

3 files changed

Lines changed: 29 additions & 11 deletions

File tree

Xcodes.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
B0403CF22AD934B600137C09 /* CompatibilityView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0403CF12AD934B600137C09 /* CompatibilityView.swift */; };
1818
B0403CF42AD9381D00137C09 /* SDKsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0403CF32AD9381D00137C09 /* SDKsView.swift */; };
1919
B0403CF62AD9849E00137C09 /* CompilersView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0403CF52AD9849E00137C09 /* CompilersView.swift */; };
20+
B0403CF82AD991F800137C09 /* UnselectedView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0403CF72AD991F800137C09 /* UnselectedView.swift */; };
2021
B0C6AD042AD6E65700E64698 /* ReleaseDateView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0C6AD032AD6E65700E64698 /* ReleaseDateView.swift */; };
2122
B0C6AD0B2AD9178E00E64698 /* IdenticalBuildView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0C6AD0A2AD9178E00E64698 /* IdenticalBuildView.swift */; };
2223
B0C6AD0D2AD91D7900E64698 /* IconView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0C6AD0C2AD91D7900E64698 /* IconView.swift */; };
@@ -203,6 +204,7 @@
203204
B0403CF12AD934B600137C09 /* CompatibilityView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CompatibilityView.swift; sourceTree = "<group>"; };
204205
B0403CF32AD9381D00137C09 /* SDKsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SDKsView.swift; sourceTree = "<group>"; };
205206
B0403CF52AD9849E00137C09 /* CompilersView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CompilersView.swift; sourceTree = "<group>"; };
207+
B0403CF72AD991F800137C09 /* UnselectedView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UnselectedView.swift; sourceTree = "<group>"; };
206208
B0C6AD032AD6E65700E64698 /* ReleaseDateView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReleaseDateView.swift; sourceTree = "<group>"; };
207209
B0C6AD0A2AD9178E00E64698 /* IdenticalBuildView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IdenticalBuildView.swift; sourceTree = "<group>"; };
208210
B0C6AD0C2AD91D7900E64698 /* IconView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IconView.swift; sourceTree = "<group>"; };
@@ -634,6 +636,7 @@
634636
B0403CF52AD9849E00137C09 /* CompilersView.swift */,
635637
B0403CF12AD934B600137C09 /* CompatibilityView.swift */,
636638
CAFBDC67259A308B003DCC5A /* InfoPane.swift */,
639+
B0403CF72AD991F800137C09 /* UnselectedView.swift */,
637640
E8E98A9525D863D700EC89A0 /* InstallationStepDetailView.swift */,
638641
B0C6AD032AD6E65700E64698 /* ReleaseDateView.swift */,
639642
B0C6AD0A2AD9178E00E64698 /* IdenticalBuildView.swift */,
@@ -915,6 +918,7 @@
915918
CABFA9C22592EEEA00380FEE /* Publisher+Resumable.swift in Sources */,
916919
B0C6AD0B2AD9178E00E64698 /* IdenticalBuildView.swift in Sources */,
917920
CAFBDC68259A308B003DCC5A /* InfoPane.swift in Sources */,
921+
B0403CF82AD991F800137C09 /* UnselectedView.swift in Sources */,
918922
E87AB3C52939B65E00D72F43 /* Hardware.swift in Sources */,
919923
CAA1CB4D255A5CFD003FD669 /* SignInPhoneListView.swift in Sources */,
920924
CAFBDC6C259A3098003DCC5A /* View+Conditional.swift in Sources */,

Xcodes/Frontend/InfoPane/InfoPane.swift

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ struct InfoPane: View {
6868
}
6969
.frame(minWidth: 200, maxWidth: .infinity)
7070
} else {
71-
empty
72-
.frame(minWidth: 200, maxWidth: .infinity)
71+
UnselectedView()
7372
}
7473
}
7574

@@ -89,15 +88,6 @@ struct InfoPane: View {
8988
EmptyView()
9089
}
9190
}
92-
93-
@ViewBuilder
94-
private var empty: some View {
95-
Text("NoXcodeSelected")
96-
.font(.title)
97-
.foregroundColor(.secondary)
98-
.frame(maxWidth: .infinity, maxHeight: .infinity)
99-
.padding()
100-
}
10191
}
10292

10393
struct InfoPane_Previews: PreviewProvider {
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//
2+
// UnselectedView.swift
3+
// Xcodes
4+
//
5+
// Created by Duong Thai on 13/10/2023.
6+
// Copyright © 2023 Robots and Pencils. All rights reserved.
7+
//
8+
9+
import SwiftUI
10+
11+
struct UnselectedView: View {
12+
var body: some View {
13+
Text("NoXcodeSelected")
14+
.font(.title)
15+
.foregroundColor(.secondary)
16+
}
17+
}
18+
19+
struct UnselectedView_Preview: PreviewProvider {
20+
static var previews: some View {
21+
UnselectedView()
22+
.padding()
23+
}
24+
}

0 commit comments

Comments
 (0)