Fix Compound Inspector and run SwiftFormat.

This commit is contained in:
Doug
2025-09-28 15:39:20 +01:00
committed by Doug
parent 8ba73f679a
commit 3abb938ff2
14 changed files with 33 additions and 27 deletions

View File

@@ -256,10 +256,14 @@
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Compound Inspector/Pods-Compound Inspector-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Compound Inspector/Pods-Compound Inspector-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Compound Inspector/Pods-Compound Inspector-frameworks.sh\"\n";
@@ -450,6 +454,7 @@
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
@@ -485,6 +490,7 @@
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",

View File

@@ -5,9 +5,9 @@
// Please see LICENSE files in the repository root for full details.
//
import SwiftUI
import Compound
import HyperionCore
import SwiftUI
struct ListScreen: View {
var body: some View {

View File

@@ -5,8 +5,8 @@
// Please see LICENSE files in the repository root for full details.
//
import SwiftUI
import DesignKit
import SwiftUI
struct TextFieldsScreen: View {
var body: some View {

View File

@@ -5,9 +5,9 @@
// Please see LICENSE files in the repository root for full details.
//
import SwiftUI
import Compound
import HyperionCore
import SwiftUI
@main
struct CompoundInspectorApp: App {
@@ -24,11 +24,11 @@ struct CompoundInspectorApp: App {
.navigationTitle("Components")
.navigationDestination(for: Screen.self) { screen in
screen
#if targetEnvironment(macCatalyst)
.dynamicTypeSize(dynamicTypeSize)
#endif
.navigationBarTitleDisplayMode(.inline)
.toolbar { screenToolbar }
#if targetEnvironment(macCatalyst)
.dynamicTypeSize(dynamicTypeSize)
#endif
.navigationBarTitleDisplayMode(.inline)
.toolbar { screenToolbar }
}
} detail: {
EmptyView()

View File

@@ -5,8 +5,8 @@
// Please see LICENSE files in the repository root for full details.
//
import SwiftUI
import Compound
import SwiftUI
struct ActionSheetScreen: View {
@State private var isPresentingConfirmationDialog = true

View File

@@ -5,8 +5,8 @@
// Please see LICENSE files in the repository root for full details.
//
import SwiftUI
import Compound
import SwiftUI
struct AlertScreen: View {
@State private var isPresentingActionAlert = false

View File

@@ -5,8 +5,8 @@
// Please see LICENSE files in the repository root for full details.
//
import SwiftUI
import Compound
import SwiftUI
struct ContextMenuScreen: View {
var body: some View {

View File

@@ -5,8 +5,8 @@
// Please see LICENSE files in the repository root for full details.
//
import SwiftUI
import Compound
import SwiftUI
struct NavigationBarScreen: View {
enum TitleMode {
@@ -42,16 +42,16 @@ struct NavigationBarScreen: View {
Section {
ListRow(label: .plain(title: "Title"),
kind: .picker(selection: $titleMode, items: [
(title: "Large", tag: .large),
(title: "Inline", tag: .inline),
(title: "Hidden", tag: .hidden)
]))
(title: "Large", tag: .large),
(title: "Inline", tag: .inline),
(title: "Hidden", tag: .hidden)
]))
ListRow(label: .plain(title: "Back Button"),
kind: .picker(selection: $backButtonMode, items: [
(title: "Navigation", tag: .navigation),
(title: "Cancelation Action", tag: .cancellationAction),
(title: "Hidden", tag: .hidden)
]))
(title: "Navigation", tag: .navigation),
(title: "Cancelation Action", tag: .cancellationAction),
(title: "Hidden", tag: .hidden)
]))
ListRow(label: .plain(title: "Confirmation Action"),
kind: .toggle($hasConfirmationAction))

View File

@@ -5,8 +5,8 @@
// Please see LICENSE files in the repository root for full details.
//
import SwiftUI
import Compound
import SwiftUI
struct ShareSheetScreen: View {
var body: some View {

View File

@@ -61,6 +61,6 @@ extension CompoundIcons {
}
private subscript(checkedMirrorDescendant key: String) -> Any {
return Mirror(reflecting: self).descendant(key)!
Mirror(reflecting: self).descendant(key)!
}
}

View File

@@ -5,8 +5,8 @@
// Please see LICENSE files in the repository root for full details.
//
import SwiftUI
import Compound
import SwiftUI
struct ColorsScreen: View {
var body: some View {
@@ -71,7 +71,7 @@ private extension Color {
private extension CGFloat {
var asHex: String {
String(format:"%02X", Int((self * 255).rounded()))
String(format: "%02X", Int((self * 255).rounded()))
}
}

View File

@@ -5,8 +5,8 @@
// Please see LICENSE files in the repository root for full details.
//
import SwiftUI
import Compound
import SwiftUI
struct FontsScreen: View {
var body: some View {

View File

@@ -5,8 +5,8 @@
// Please see LICENSE files in the repository root for full details.
//
import SwiftUI
import Compound
import SwiftUI
struct GradientsScreen: View {
var body: some View {

View File

@@ -5,8 +5,8 @@
// Please see LICENSE files in the repository root for full details.
//
import SwiftUI
import Compound
import SwiftUI
struct IconsScreen: View {
let icons = Image.compound.allValues.sorted(by: { $0.name < $1.name })