Skip to content

Commit e881ce5

Browse files
committed
Fix Compound Inspector and run SwiftFormat.
1 parent c6b6c13 commit e881ce5

14 files changed

+33
-27
lines changed

compound-ios/Inspector/Inspector.xcodeproj/project.pbxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,14 @@
256256
inputFileListPaths = (
257257
"${PODS_ROOT}/Target Support Files/Pods-Compound Inspector/Pods-Compound Inspector-frameworks-${CONFIGURATION}-input-files.xcfilelist",
258258
);
259+
inputPaths = (
260+
);
259261
name = "[CP] Embed Pods Frameworks";
260262
outputFileListPaths = (
261263
"${PODS_ROOT}/Target Support Files/Pods-Compound Inspector/Pods-Compound Inspector-frameworks-${CONFIGURATION}-output-files.xcfilelist",
262264
);
265+
outputPaths = (
266+
);
263267
runOnlyForDeploymentPostprocessing = 0;
264268
shellPath = /bin/sh;
265269
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Compound Inspector/Pods-Compound Inspector-frameworks.sh\"\n";
@@ -450,6 +454,7 @@
450454
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
451455
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
452456
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
457+
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
453458
LD_RUNPATH_SEARCH_PATHS = (
454459
"$(inherited)",
455460
"@executable_path/Frameworks",
@@ -485,6 +490,7 @@
485490
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
486491
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
487492
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
493+
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
488494
LD_RUNPATH_SEARCH_PATHS = (
489495
"$(inherited)",
490496
"@executable_path/Frameworks",

compound-ios/Inspector/Sources/Components/ListScreen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
// Please see LICENSE files in the repository root for full details.
66
//
77

8-
import SwiftUI
98
import Compound
109
import HyperionCore
10+
import SwiftUI
1111

1212
struct ListScreen: View {
1313
var body: some View {

compound-ios/Inspector/Sources/Components/TextFieldsScreen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Please see LICENSE files in the repository root for full details.
66
//
77

8-
import SwiftUI
98
import DesignKit
9+
import SwiftUI
1010

1111
struct TextFieldsScreen: View {
1212
var body: some View {

compound-ios/Inspector/Sources/CompoundInspectorApp.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
// Please see LICENSE files in the repository root for full details.
66
//
77

8-
import SwiftUI
98
import Compound
109
import HyperionCore
10+
import SwiftUI
1111

1212
@main
1313
struct CompoundInspectorApp: App {
@@ -24,11 +24,11 @@ struct CompoundInspectorApp: App {
2424
.navigationTitle("Components")
2525
.navigationDestination(for: Screen.self) { screen in
2626
screen
27-
#if targetEnvironment(macCatalyst)
28-
.dynamicTypeSize(dynamicTypeSize)
29-
#endif
30-
.navigationBarTitleDisplayMode(.inline)
31-
.toolbar { screenToolbar }
27+
#if targetEnvironment(macCatalyst)
28+
.dynamicTypeSize(dynamicTypeSize)
29+
#endif
30+
.navigationBarTitleDisplayMode(.inline)
31+
.toolbar { screenToolbar }
3232
}
3333
} detail: {
3434
EmptyView()

compound-ios/Inspector/Sources/System Components/ActionSheetScreen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Please see LICENSE files in the repository root for full details.
66
//
77

8-
import SwiftUI
98
import Compound
9+
import SwiftUI
1010

1111
struct ActionSheetScreen: View {
1212
@State private var isPresentingConfirmationDialog = true

compound-ios/Inspector/Sources/System Components/AlertScreen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Please see LICENSE files in the repository root for full details.
66
//
77

8-
import SwiftUI
98
import Compound
9+
import SwiftUI
1010

1111
struct AlertScreen: View {
1212
@State private var isPresentingActionAlert = false

compound-ios/Inspector/Sources/System Components/ContextMenuScreen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Please see LICENSE files in the repository root for full details.
66
//
77

8-
import SwiftUI
98
import Compound
9+
import SwiftUI
1010

1111
struct ContextMenuScreen: View {
1212
var body: some View {

compound-ios/Inspector/Sources/System Components/NavigationBarScreen.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Please see LICENSE files in the repository root for full details.
66
//
77

8-
import SwiftUI
98
import Compound
9+
import SwiftUI
1010

1111
struct NavigationBarScreen: View {
1212
enum TitleMode {
@@ -42,16 +42,16 @@ struct NavigationBarScreen: View {
4242
Section {
4343
ListRow(label: .plain(title: "Title"),
4444
kind: .picker(selection: $titleMode, items: [
45-
(title: "Large", tag: .large),
46-
(title: "Inline", tag: .inline),
47-
(title: "Hidden", tag: .hidden)
48-
]))
45+
(title: "Large", tag: .large),
46+
(title: "Inline", tag: .inline),
47+
(title: "Hidden", tag: .hidden)
48+
]))
4949
ListRow(label: .plain(title: "Back Button"),
5050
kind: .picker(selection: $backButtonMode, items: [
51-
(title: "Navigation", tag: .navigation),
52-
(title: "Cancelation Action", tag: .cancellationAction),
53-
(title: "Hidden", tag: .hidden)
54-
]))
51+
(title: "Navigation", tag: .navigation),
52+
(title: "Cancelation Action", tag: .cancellationAction),
53+
(title: "Hidden", tag: .hidden)
54+
]))
5555

5656
ListRow(label: .plain(title: "Confirmation Action"),
5757
kind: .toggle($hasConfirmationAction))

compound-ios/Inspector/Sources/System Components/ShareSheetScreen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Please see LICENSE files in the repository root for full details.
66
//
77

8-
import SwiftUI
98
import Compound
9+
import SwiftUI
1010

1111
struct ShareSheetScreen: View {
1212
var body: some View {

compound-ios/Inspector/Sources/Tokens/AllCases.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ extension CompoundIcons {
6161
}
6262

6363
private subscript(checkedMirrorDescendant key: String) -> Any {
64-
return Mirror(reflecting: self).descendant(key)!
64+
Mirror(reflecting: self).descendant(key)!
6565
}
6666
}

0 commit comments

Comments
 (0)