Skip to content

Commit ef0dd60

Browse files
committed
add NFC features
1 parent 6972371 commit ef0dd60

File tree

92 files changed

+4376
-93
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+4376
-93
lines changed

NativeAppTemplate.xcodeproj/project.pbxproj

Lines changed: 204 additions & 11 deletions
Large diffs are not rendered by default.

NativeAppTemplate/App.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ struct App {
3131
dataManager = nativeAppTemplateObjects.dataManager
3232
messageBus = nativeAppTemplateObjects.messageBus
3333

34+
// Tips.showAllTipsForTesting()
35+
3436
try? Tips.configure()
3537
}
3638
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import Foundation
2+
3+
@MainActor
4+
struct AppSingletons {
5+
var nfcManager: NFCManager
6+
7+
init(nfcManager: NFCManager? = nil) {
8+
self.nfcManager = nfcManager ?? NFCManager.shared
9+
}
10+
}
11+
12+
@MainActor var appSingletons = AppSingletons()

NativeAppTemplate/Assets.xcassets/Colours/Tags/personalTagBackground.colorset/Contents.json renamed to NativeAppTemplate/Assets.xcassets/Colours/Backgrounds/coloredPrimaryBackground.colorset/Contents.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"components" : {
77
"alpha" : "1.000",
88
"blue" : "0xFF",
9-
"green" : "0xEC",
10-
"red" : "0xB3"
9+
"green" : "0xF8",
10+
"red" : "0xE3"
1111
}
1212
},
1313
"idiom" : "universal"

NativeAppTemplate/Assets.xcassets/Colours/Tags/personalTagForeground.colorset/Contents.json renamed to NativeAppTemplate/Assets.xcassets/Colours/Backgrounds/coloredPrimaryForeground.colorset/Contents.json

File renamed without changes.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"colors" : [
3+
{
4+
"color" : {
5+
"color-space" : "srgb",
6+
"components" : {
7+
"alpha" : "1.000",
8+
"blue" : "0xFA",
9+
"green" : "0xF7",
10+
"red" : "0xF5"
11+
}
12+
},
13+
"idiom" : "universal"
14+
}
15+
],
16+
"info" : {
17+
"author" : "xcode",
18+
"version" : 1
19+
}
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"colors" : [
3+
{
4+
"color" : {
5+
"color-space" : "srgb",
6+
"components" : {
7+
"alpha" : "1.000",
8+
"blue" : "0x33",
9+
"green" : "0x29",
10+
"red" : "0x1F"
11+
}
12+
},
13+
"idiom" : "universal"
14+
}
15+
],
16+
"info" : {
17+
"author" : "xcode",
18+
"version" : 1
19+
}
20+
}

NativeAppTemplate/Assets.xcassets/Colours/Tags/currentAccountTagForeground.colorset/Contents.json renamed to NativeAppTemplate/Assets.xcassets/Colours/Backgrounds/failureBackground.colorset/Contents.json

File renamed without changes.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"colors" : [
3+
{
4+
"color" : {
5+
"color-space" : "srgb",
6+
"components" : {
7+
"alpha" : "1.000",
8+
"blue" : "0x40",
9+
"green" : "0x4D",
10+
"red" : "0x01"
11+
}
12+
},
13+
"idiom" : "universal"
14+
}
15+
],
16+
"info" : {
17+
"author" : "xcode",
18+
"version" : 1
19+
}
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"colors" : [
3+
{
4+
"color" : {
5+
"color-space" : "srgb",
6+
"components" : {
7+
"alpha" : "1.000",
8+
"blue" : "0xE2",
9+
"green" : "0xF7",
10+
"red" : "0xC6"
11+
}
12+
},
13+
"idiom" : "universal"
14+
}
15+
],
16+
"info" : {
17+
"author" : "xcode",
18+
"version" : 1
19+
}
20+
}

0 commit comments

Comments
 (0)