mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Fix Compound Inspector and run SwiftFormat.
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user