Skip to content

Commit

Permalink
Skeleton VisionOS app
Browse files Browse the repository at this point in the history
## Context
We are building a sample app for VisionOS to demonstrate the usage of CustomerIO SwiftSDK in VisionOS.

## In this PR
In this PR we are introducing a new empty VisionOS app, with a single `Hello World` screen and the Swift Package Manger dependencies that will be used. Namely:
- `swift-markdown-ui`: which will be used for imarkdown rendering.
- `'splash`: dependency to create custom code syntax highlighting themes.
- `customerio-swift`: local dependency on the CIO Swift SDK

## Test Plan:
- Open visionos.xcproject in Xcode
- Make sure you have VisionOS simulator installed and selected
- CMD+R to run the app and see the `Hello World` screen
  • Loading branch information
Ahmed-Ali committed Feb 28, 2024
1 parent 873eb43 commit 4f7f8b8
Show file tree
Hide file tree
Showing 15 changed files with 559 additions and 0 deletions.
414 changes: 414 additions & 0 deletions Apps/visionos/visionos.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"idiom" : "vision",
"scale" : "2x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"info" : {
"author" : "xcode",
"version" : 1
},
"layers" : [
{
"filename" : "Front.solidimagestacklayer"
},
{
"filename" : "Middle.solidimagestacklayer"
},
{
"filename" : "Back.solidimagestacklayer"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"idiom" : "vision",
"scale" : "2x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"idiom" : "vision",
"scale" : "2x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
6 changes: 6 additions & 0 deletions Apps/visionos/visionos/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
15 changes: 15 additions & 0 deletions Apps/visionos/visionos/ContentView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import SwiftUI

struct ContentView: View {
var body: some View {
VStack {

Text("Hello, world!")
}
.padding()
}
}

#Preview(windowStyle: .automatic) {
ContentView()
}
15 changes: 15 additions & 0 deletions Apps/visionos/visionos/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationPreferredDefaultSceneSessionRole</key>
<string>UIWindowSceneSessionRoleApplication</string>
<key>UIApplicationSupportsMultipleScenes</key>
<true/>
<key>UISceneConfigurations</key>
<dict/>
</dict>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
17 changes: 17 additions & 0 deletions Apps/visionos/visionos/visionosApp.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// visionosApp.swift
// visionos
//
// Created by Ahmed Ali on 29/02/2024.
//

import SwiftUI

@main
struct visionosApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}

0 comments on commit 4f7f8b8

Please sign in to comment.