Skip to content

Commit

Permalink
Move all icon in template mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mackoj committed Oct 13, 2023
1 parent c3e292e commit 9de0d8c
Show file tree
Hide file tree
Showing 495 changed files with 4,943 additions and 4,428 deletions.
23 changes: 23 additions & 0 deletions Showcase/ShowcaseSnapshotTests/NonRegressionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,30 @@ import SwiftUI
@testable import VitaminSwiftUI
@testable import Showcase

extension Image {
public init(asset: VitaminAsset) {
self.init(asset.name, bundle: asset.bundle)
}
}

final class NonRegressionUIKitTests: XCTestCase {

func testIconsTemplateMode() throws {
assertSnapshot(
matching: Image(asset: Vitamix.searchLine)
.frame(width: 100, height: 100)
.foregroundStyle(.red),
as: .image,
named: "red"
)
assertSnapshot(
matching: Image(asset: Vitamix.searchLine)
.frame(width: 100, height: 100),
as: .image,
named: "black"
)
}

// https://decathlon.atlassian.net/browse/CNT-1085
func testCNT1085() throws {
let restartButton = VitaminButton()
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"images": [
"images" : [
{
"filename": "accessibility-fill.pdf",
"idiom": "universal"
"filename" : "accessibility-fill.pdf",
"idiom" : "universal"
}
],
"info": {
"author": "xcode",
"version": 1
"info" : {
"author" : "xcode",
"version" : 1
},
"properties": {
"preserves-vector-representation": true
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"images": [
"images" : [
{
"filename": "accessibility-line.pdf",
"idiom": "universal"
"filename" : "accessibility-line.pdf",
"idiom" : "universal"
}
],
"info": {
"author": "xcode",
"version": 1
"info" : {
"author" : "xcode",
"version" : 1
},
"properties": {
"preserves-vector-representation": true
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"images": [
"images" : [
{
"filename": "add-circle-fill.pdf",
"idiom": "universal"
"filename" : "add-circle-fill.pdf",
"idiom" : "universal"
}
],
"info": {
"author": "xcode",
"version": 1
"info" : {
"author" : "xcode",
"version" : 1
},
"properties": {
"preserves-vector-representation": true
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"images": [
"images" : [
{
"filename": "add-circle-line.pdf",
"idiom": "universal"
"filename" : "add-circle-line.pdf",
"idiom" : "universal"
}
],
"info": {
"author": "xcode",
"version": 1
"info" : {
"author" : "xcode",
"version" : 1
},
"properties": {
"preserves-vector-representation": true
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"images": [
"images" : [
{
"filename": "add-fill.pdf",
"idiom": "universal"
"filename" : "add-fill.pdf",
"idiom" : "universal"
}
],
"info": {
"author": "xcode",
"version": 1
"info" : {
"author" : "xcode",
"version" : 1
},
"properties": {
"preserves-vector-representation": true
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"images": [
"images" : [
{
"filename": "add-line.pdf",
"idiom": "universal"
"filename" : "add-line.pdf",
"idiom" : "universal"
}
],
"info": {
"author": "xcode",
"version": 1
"info" : {
"author" : "xcode",
"version" : 1
},
"properties": {
"preserves-vector-representation": true
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"images": [
"images" : [
{
"filename": "alert-fill.pdf",
"idiom": "universal"
"filename" : "alert-fill.pdf",
"idiom" : "universal"
}
],
"info": {
"author": "xcode",
"version": 1
"info" : {
"author" : "xcode",
"version" : 1
},
"properties": {
"preserves-vector-representation": true
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"images": [
"images" : [
{
"filename": "alert-line.pdf",
"idiom": "universal"
"filename" : "alert-line.pdf",
"idiom" : "universal"
}
],
"info": {
"author": "xcode",
"version": 1
"info" : {
"author" : "xcode",
"version" : 1
},
"properties": {
"preserves-vector-representation": true
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"images": [
"images" : [
{
"filename": "align-bottom-fill.pdf",
"idiom": "universal"
"filename" : "align-bottom-fill.pdf",
"idiom" : "universal"
}
],
"info": {
"author": "xcode",
"version": 1
"info" : {
"author" : "xcode",
"version" : 1
},
"properties": {
"preserves-vector-representation": true
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"images": [
"images" : [
{
"filename": "align-bottom-line.pdf",
"idiom": "universal"
"filename" : "align-bottom-line.pdf",
"idiom" : "universal"
}
],
"info": {
"author": "xcode",
"version": 1
"info" : {
"author" : "xcode",
"version" : 1
},
"properties": {
"preserves-vector-representation": true
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"images": [
"images" : [
{
"filename": "align-center-fill.pdf",
"idiom": "universal"
"filename" : "align-center-fill.pdf",
"idiom" : "universal"
}
],
"info": {
"author": "xcode",
"version": 1
"info" : {
"author" : "xcode",
"version" : 1
},
"properties": {
"preserves-vector-representation": true
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"images": [
"images" : [
{
"filename": "align-center-line.pdf",
"idiom": "universal"
"filename" : "align-center-line.pdf",
"idiom" : "universal"
}
],
"info": {
"author": "xcode",
"version": 1
"info" : {
"author" : "xcode",
"version" : 1
},
"properties": {
"preserves-vector-representation": true
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"images": [
"images" : [
{
"filename": "align-left-fill.pdf",
"idiom": "universal"
"filename" : "align-left-fill.pdf",
"idiom" : "universal"
}
],
"info": {
"author": "xcode",
"version": 1
"info" : {
"author" : "xcode",
"version" : 1
},
"properties": {
"preserves-vector-representation": true
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}
}
Loading

0 comments on commit 9de0d8c

Please sign in to comment.