Skip to content

Commit fa9a608

Browse files
authored
feat: Add OCKVisionSample app (#144)
* refactor: Update to released dependencies * Add OCKVisionSample app * Update README.md * Add visionOS to CI * Update ci.yml
1 parent 523de51 commit fa9a608

File tree

26 files changed

+1184
-15
lines changed

26 files changed

+1184
-15
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,22 @@ jobs:
1717
runs-on: macos-15
1818
strategy:
1919
matrix:
20-
destination: ['-destination platform\=iOS\ Simulator,OS=18.1,name\=iPhone\ 16\ Pro\ Max test', 'CODE_SIGNING_ALLOWED="NO"']
21-
scheme: ['OCKSample', 'OCKWatchSample']
20+
destination: ['-destination platform\=iOS\ Simulator,OS=18.1,name\=iPhone\ 16\ Pro\ Max test', 'CODE_SIGNING_ALLOWED="NO"', '-destination platform\=visionOS\ Simulator,OS=2.4,name\=Apple\ Vision\ Pro']
21+
scheme: ['OCKSample', 'OCKWatchSample', 'OCKVisionSample']
2222
exclude:
2323
- destination: '-destination platform\=iOS\ Simulator,OS=18.1,name\=iPhone\ 16\ Pro\ Max test'
2424
scheme: 'OCKWatchSample'
25+
- destination: '-destination platform\=visionOS\ Simulator,OS=2.4,name\=Apple\ Vision\ Pro'
26+
scheme: 'OCKWatchSample'
2527
- destination: 'CODE_SIGNING_ALLOWED="NO"'
2628
scheme: 'OCKSample'
29+
- destination: '-destination platform\=visionOS\ Simulator,OS=2.4,name\=Apple\ Vision\ Pro'
30+
scheme: 'OCKSample'
31+
- destination: '-destination platform\=iOS\ Simulator,OS=18.1,name\=iPhone\ 16\ Pro\ Max test'
32+
scheme: 'OCKVisionSample'
33+
- destination: 'CODE_SIGNING_ALLOWED="NO"'
34+
scheme: 'OCKVisionSample'
35+
name: ${{ matrix.scheme }} Unit Tests
2736
steps:
2837
- uses: actions/checkout@v4
2938
- name: Install SwiftLint

OCKSample.xcodeproj/project.pbxproj

Lines changed: 423 additions & 5 deletions
Large diffs are not rendered by default.

OCKSample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OCKSample/Main/Login/LoginViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class LoginViewModel: ObservableObject {
2424
everytime you use it to wrap a property.
2525
*/
2626
objectWillChange.send()
27-
if let newValue {
27+
if newValue != nil {
2828
self.sendUpdatedUserStatusToWatch()
2929
}
3030
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "vision",
5+
"scale" : "2x"
6+
}
7+
],
8+
"info" : {
9+
"author" : "xcode",
10+
"version" : 1
11+
}
12+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
},
6+
"layers" : [
7+
{
8+
"filename" : "Front.solidimagestacklayer"
9+
},
10+
{
11+
"filename" : "Middle.solidimagestacklayer"
12+
},
13+
{
14+
"filename" : "Back.solidimagestacklayer"
15+
}
16+
]
17+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "vision",
5+
"scale" : "2x"
6+
}
7+
],
8+
"info" : {
9+
"author" : "xcode",
10+
"version" : 1
11+
}
12+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "vision",
5+
"scale" : "2x"
6+
}
7+
],
8+
"info" : {
9+
"author" : "xcode",
10+
"version" : 1
11+
}
12+
}

0 commit comments

Comments
 (0)