diff --git a/.swiftpm/xcode/package.xcworkspace/xcuserdata/andrea.agudo.xcuserdatad/UserInterfaceState.xcuserstate b/.swiftpm/xcode/package.xcworkspace/xcuserdata/andrea.agudo.xcuserdatad/UserInterfaceState.xcuserstate index ebfdcb8..a73e3dc 100644 Binary files a/.swiftpm/xcode/package.xcworkspace/xcuserdata/andrea.agudo.xcuserdatad/UserInterfaceState.xcuserstate and b/.swiftpm/xcode/package.xcworkspace/xcuserdata/andrea.agudo.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/Contents.json deleted file mode 100644 index 73c0059..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/Contents.json deleted file mode 100644 index 73c0059..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/default-feedback-accent-10.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/default-feedback-accent-10.colorset/Contents.json deleted file mode 100644 index d715ca4..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/default-feedback-accent-10.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "1.000", - "green" : "0.969", - "red" : "0.937" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/default-feedback-accent-100.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/default-feedback-accent-100.colorset/Contents.json deleted file mode 100644 index b07d26c..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/default-feedback-accent-100.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.961", - "green" : "0.467", - "red" : "0.039" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/default-feedback-accent-20.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/default-feedback-accent-20.colorset/Contents.json deleted file mode 100644 index 637c786..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/default-feedback-accent-20.colorset/Contents.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.992", - "green" : "0.914", - "red" : "0.843" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "light" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.992", - "green" : "0.914", - "red" : "0.843" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.192", - "green" : "0.114", - "red" : "0.051" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/default-feedback-accent-40.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/default-feedback-accent-40.colorset/Contents.json deleted file mode 100644 index d2b5797..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/default-feedback-accent-40.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.984", - "green" : "0.788", - "red" : "0.616" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/default-feedback-accent-60.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/default-feedback-accent-60.colorset/Contents.json deleted file mode 100644 index 9c1a21f..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/default-feedback-accent-60.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.976", - "green" : "0.682", - "red" : "0.424" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/default-feedback-accent-80.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/default-feedback-accent-80.colorset/Contents.json deleted file mode 100644 index 891a29e..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/default-feedback-accent-80.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.965", - "green" : "0.525", - "red" : "0.137" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/default-feedback-accent-base.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/default-feedback-accent-base.colorset/Contents.json deleted file mode 100644 index af3a647..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/accent/default-feedback-accent-base.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.969", - "green" : "0.576", - "red" : "0.231" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/error/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/error/Contents.json deleted file mode 100644 index 73c0059..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/error/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/error/default-feedback-error-100.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/error/default-feedback-error-100.colorset/Contents.json deleted file mode 100644 index 81b4cca..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/error/default-feedback-error-100.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.125", - "green" : "0.141", - "red" : "0.906" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/error/default-feedback-error-20.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/error/default-feedback-error-20.colorset/Contents.json deleted file mode 100644 index 7add393..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/error/default-feedback-error-20.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.863", - "green" : "0.863", - "red" : "0.984" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/error/default-feedback-error-40.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/error/default-feedback-error-40.colorset/Contents.json deleted file mode 100644 index 30ba206..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/error/default-feedback-error-40.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.576", - "green" : "0.584", - "red" : "0.953" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/error/default-feedback-error-60.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/error/default-feedback-error-60.colorset/Contents.json deleted file mode 100644 index 938ab8d..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/error/default-feedback-error-60.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.396", - "green" : "0.408", - "red" : "0.933" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/error/default-feedback-error-80.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/error/default-feedback-error-80.colorset/Contents.json deleted file mode 100644 index 01940c3..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/error/default-feedback-error-80.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.216", - "green" : "0.227", - "red" : "0.918" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/error/default-feedback-error-base.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/error/default-feedback-error-base.colorset/Contents.json deleted file mode 100644 index 1001684..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/error/default-feedback-error-base.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.306", - "green" : "0.318", - "red" : "0.925" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/success/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/success/Contents.json deleted file mode 100644 index 73c0059..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/success/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/success/default-feedback-success-100.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/success/default-feedback-success-100.colorset/Contents.json deleted file mode 100644 index 8eb1cf3..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/success/default-feedback-success-100.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.431", - "green" : "0.612", - "red" : "0.161" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/success/default-feedback-success-20.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/success/default-feedback-success-20.colorset/Contents.json deleted file mode 100644 index 9e1c191..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/success/default-feedback-success-20.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.910", - "green" : "0.953", - "red" : "0.839" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/success/default-feedback-success-40.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/success/default-feedback-success-40.colorset/Contents.json deleted file mode 100644 index 72bec6c..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/success/default-feedback-success-40.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.678", - "green" : "0.847", - "red" : "0.424" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/success/default-feedback-success-60.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/success/default-feedback-success-60.colorset/Contents.json deleted file mode 100644 index 7de415b..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/success/default-feedback-success-60.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.592", - "green" : "0.804", - "red" : "0.263" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/success/default-feedback-success-80.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/success/default-feedback-success-80.colorset/Contents.json deleted file mode 100644 index 73b4493..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/success/default-feedback-success-80.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.490", - "green" : "0.690", - "red" : "0.184" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/success/default-feedback-success-base.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/success/default-feedback-success-base.colorset/Contents.json deleted file mode 100644 index 9996de9..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/success/default-feedback-success-base.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.545", - "green" : "0.769", - "red" : "0.204" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/warning/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/warning/Contents.json deleted file mode 100644 index 73c0059..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/warning/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/warning/default-feedback-warning-100.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/warning/default-feedback-warning-100.colorset/Contents.json deleted file mode 100644 index 90b0f9d..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/warning/default-feedback-warning-100.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.231", - "green" : "0.710", - "red" : "1.000" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/warning/default-feedback-warning-20.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/warning/default-feedback-warning-20.colorset/Contents.json deleted file mode 100644 index 6b4602d..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/warning/default-feedback-warning-20.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.886", - "green" : "0.957", - "red" : "1.000" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/warning/default-feedback-warning-40.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/warning/default-feedback-warning-40.colorset/Contents.json deleted file mode 100644 index dc393fc..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/warning/default-feedback-warning-40.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.733", - "green" : "0.898", - "red" : "1.000" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/warning/default-feedback-warning-60.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/warning/default-feedback-warning-60.colorset/Contents.json deleted file mode 100644 index c15fc48..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/warning/default-feedback-warning-60.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.631", - "green" : "0.859", - "red" : "1.000" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/warning/default-feedback-warning-80.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/warning/default-feedback-warning-80.colorset/Contents.json deleted file mode 100644 index ab954cc..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/warning/default-feedback-warning-80.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.333", - "green" : "0.745", - "red" : "1.000" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/warning/default-feedback-warning-base.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/warning/default-feedback-warning-base.colorset/Contents.json deleted file mode 100644 index c7027c0..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/feedback/warning/default-feedback-warning-base.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.431", - "green" : "0.784", - "red" : "1.000" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/InApp/InAppColors.xcassets/Default/neutral/default-neutral-background.colorset/Contents.json b/ios/Sources/InApp/InAppColors.xcassets/Default/neutral/default-neutral-background.colorset/Contents.json deleted file mode 100644 index 737e910..0000000 --- a/ios/Sources/InApp/InAppColors.xcassets/Default/neutral/default-neutral-background.colorset/Contents.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "1.000", - "green" : "1.000", - "red" : "1.000" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "light" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "1.000", - "green" : "1.000", - "red" : "1.000" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.000", - "green" : "0.000", - "red" : "0.000" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/ios/Sources/Theming/Font+Extensions.swift b/ios/Sources/Theming/Font+Extensions.swift index 938b70a..c07b95e 100644 --- a/ios/Sources/Theming/Font+Extensions.swift +++ b/ios/Sources/Theming/Font+Extensions.swift @@ -1,59 +1,5 @@ import UIKit -public extension Theme { - - struct DynamicFont: Hashable { - - let base: UIFont - - public var regular: UIFont { base.withWeight(.regular) } - public var medium: UIFont { base.withWeight(.medium) } - public var semibold: UIFont { base.withWeight(.semibold) } - public var bold: UIFont { base.withWeight(.bold) } - - public var monospaced: UIFont { - - guard let descriptor = base.fontDescriptor.withSymbolicTraits(.traitMonoSpace) else { return base } - return UIFont(descriptor: descriptor, size: base.pointSize) - } - } - - struct Fonts: Hashable { - - public let header01: DynamicFont - public let header02: DynamicFont - public let header03: DynamicFont - public let header04: DynamicFont - public let header05: DynamicFont - public let header06: DynamicFont - - public let body01: DynamicFont - public let body02: DynamicFont - - public let buttonSmall: DynamicFont - public let buttonLarge: DynamicFont - - public let subtitle: DynamicFont - public let caption: DynamicFont - } -} - -private extension UIFont { - - func withWeight(_ weight: UIFont.Weight) -> UIFont { - - let descriptor = fontDescriptor.addingAttributes( - [ - .traits: [ - UIFontDescriptor.TraitKey.weight: weight - ] - ] - ) - - return UIFont(descriptor: descriptor, size: pointSize) - } -} - public extension UIFont { static func preferredFont(forTextStyle style: TextStyle, weight: Weight, italic: Bool = false) -> UIFont { diff --git a/ios/Sources/Theming/Theme.swift b/ios/Sources/Theming/Theme.swift index b677e6f..1b1cf13 100644 --- a/ios/Sources/Theming/Theme.swift +++ b/ios/Sources/Theming/Theme.swift @@ -3,5 +3,4 @@ import Foundation public struct Theme: Hashable { public let colors: Colors - public let fonts: Fonts } diff --git a/ios/Sources/Theming/ThemeManager+DefaultTheme.swift b/ios/Sources/Theming/ThemeManager+DefaultTheme.swift index 9b839c6..020c95f 100644 --- a/ios/Sources/Theming/ThemeManager+DefaultTheme.swift +++ b/ios/Sources/Theming/ThemeManager+DefaultTheme.swift @@ -75,53 +75,7 @@ public extension ThemeManager { child60: UIColor(named: "default-brand-secondary-08-60", in: .module, compatibleWith: nil)!, child80: UIColor(named: "default-brand-secondary-08-80", in: .module, compatibleWith: nil)!, child100: UIColor(named: "default-brand-secondary-08-100", in: .module, compatibleWith: nil)! - ), - feedbackAccent: Theme.DynamicColor( - base: UIColor(named: "default-feedback-accent-base", in: .module, compatibleWith: nil)!, - child20: UIColor(named: "default-feedback-accent-20", in: .module, compatibleWith: nil)!, - child40: UIColor(named: "default-feedback-accent-40", in: .module, compatibleWith: nil)!, - child60: UIColor(named: "default-feedback-accent-60", in: .module, compatibleWith: nil)!, - child80: UIColor(named: "default-feedback-accent-80", in: .module, compatibleWith: nil)!, - child100: UIColor(named: "default-feedback-accent-100", in: .module, compatibleWith: nil)! - ), - feedbackError: Theme.DynamicColor( - base: UIColor(named: "default-feedback-error-base", in: .module, compatibleWith: nil)!, - child20: UIColor(named: "default-feedback-error-20", in: .module, compatibleWith: nil)!, - child40: UIColor(named: "default-feedback-error-40", in: .module, compatibleWith: nil)!, - child60: UIColor(named: "default-feedback-error-60", in: .module, compatibleWith: nil)!, - child80: UIColor(named: "default-feedback-error-80", in: .module, compatibleWith: nil)!, - child100: UIColor(named: "default-feedback-error-100", in: .module, compatibleWith: nil)! - ), - feedbackWarning: Theme.DynamicColor( - base: UIColor(named: "default-feedback-warning-base", in: .module, compatibleWith: nil)!, - child20: UIColor(named: "default-feedback-warning-20", in: .module, compatibleWith: nil)!, - child40: UIColor(named: "default-feedback-warning-40", in: .module, compatibleWith: nil)!, - child60: UIColor(named: "default-feedback-warning-60", in: .module, compatibleWith: nil)!, - child80: UIColor(named: "default-feedback-warning-80", in: .module, compatibleWith: nil)!, - child100: UIColor(named: "default-feedback-warning-100", in: .module, compatibleWith: nil)! - ), - feedbackSuccess: Theme.DynamicColor( - base: UIColor(named: "default-feedback-success-base", in: .module, compatibleWith: nil)!, - child20: UIColor(named: "default-feedback-success-20", in: .module, compatibleWith: nil)!, - child40: UIColor(named: "default-feedback-success-40", in: .module, compatibleWith: nil)!, - child60: UIColor(named: "default-feedback-success-60", in: .module, compatibleWith: nil)!, - child80: UIColor(named: "default-feedback-success-80", in: .module, compatibleWith: nil)!, - child100: UIColor(named: "default-feedback-success-100", in: .module, compatibleWith: nil)! ) - ), - fonts: Theme.Fonts( - header01: Theme.DynamicFont(base: .systemFont(ofSize: 32.0)), - header02: Theme.DynamicFont(base: .systemFont(ofSize: 22.0)), - header03: Theme.DynamicFont(base: .systemFont(ofSize: 20.0)), - header04: Theme.DynamicFont(base: .systemFont(ofSize: 18.0)), - header05: Theme.DynamicFont(base: .systemFont(ofSize: 14.0)), - header06: Theme.DynamicFont(base: .systemFont(ofSize: 16.0)), - body01: Theme.DynamicFont(base: .systemFont(ofSize: 16.0)), - body02: Theme.DynamicFont(base: .systemFont(ofSize: 14.0)), - buttonSmall: Theme.DynamicFont(base: .systemFont(ofSize: 14.0)), - buttonLarge: Theme.DynamicFont(base: .systemFont(ofSize: 16.0)), - subtitle: Theme.DynamicFont(base: .systemFont(ofSize: 13.0)), - caption: Theme.DynamicFont(base: .systemFont(ofSize: 10.0)) ) ) }