Fix Compound Inspector and run SwiftFormat.

This commit is contained in:
Doug
2025-09-28 15:39:20 +01:00
committed by Doug
parent c6b6c13533
commit e881ce56a8
14 changed files with 33 additions and 27 deletions
@@ -61,6 +61,6 @@ extension CompoundIcons {
}
private subscript(checkedMirrorDescendant key: String) -> Any {
return Mirror(reflecting: self).descendant(key)!
Mirror(reflecting: self).descendant(key)!
}
}
@@ -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()))
}
}
@@ -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 {
@@ -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 {
@@ -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 })