@@ -17,18 +17,7 @@ struct InfoPane: View {
1717 Text ( verbatim: " Xcode \( xcode. description) \( xcode. version. buildMetadataIdentifiersDisplay) " )
1818 . font ( . title)
1919
20- switch xcode. installState {
21- case . notInstalled:
22- NotInstalledStateButtons (
23- downloadFileSizeString: xcode. downloadFileSizeString,
24- id: xcode. id
25- )
26- case let . installing( installationStep) :
27- InstallationStepDetailView ( installationStep: installationStep)
28- CancelInstallButton ( xcode: xcode)
29- case . installed:
30- InstalledStateButtons ( xcode: xcode)
31- }
20+ InfoPaneControls ( xcode: xcode)
3221
3322 Divider ( )
3423
@@ -79,7 +68,7 @@ private struct WrapperView: View {
7968 var xcode : Xcode { xcodeDict [ name] ! }
8069}
8170
82- private enum PreviewName : String , CaseIterable , Identifiable {
71+ enum PreviewName : String , CaseIterable , Identifiable {
8372 case Populated_Installed_Selected
8473 case Populated_Installed_Unselected
8574 case Populated_Uninstalled
@@ -89,7 +78,7 @@ private enum PreviewName: String, CaseIterable, Identifiable {
8978 var id : PreviewName { self }
9079}
9180
92- private var xcodeDict : [ PreviewName : Xcode ] = [
81+ var xcodeDict : [ PreviewName : Xcode ] = [
9382 . Populated_Installed_Selected: . init(
9483 version: _versionNoMeta,
9584 installState: . installed( Path ( _path) !) ,
@@ -130,7 +119,16 @@ private var xcodeDict: [PreviewName: Xcode] = [
130119 ) ,
131120 . Basic_Installing: . init(
132121 version: _versionWithMeta,
133- installState: . installing( . downloading( progress: configure ( Progress ( totalUnitCount: 100 ) ) { $0. completedUnitCount = 40 ; $0. throughput = 232_323_232 ; $0. fileCompletedCount = 2_323_004 ; $0. fileTotalCount = 1_193_939_393 } ) ) ,
122+ installState: . installing( . downloading(
123+ progress: configure ( Progress ( ) ) {
124+ $0. kind = . file
125+ $0. fileOperationKind = . downloading
126+ $0. estimatedTimeRemaining = 123
127+ $0. totalUnitCount = 11_944_848_484
128+ $0. completedUnitCount = 848_444_920
129+ $0. throughput = 9_211_681
130+ }
131+ ) ) ,
134132 selected: false ,
135133 icon: nil ,
136134 sdks: nil ,
0 commit comments