Skip to content

Commit 9e3dd1e

Browse files
committed
Moved example app from another git repo to /Example inside this package.
Updated .gitignore
1 parent b4f0b43 commit 9e3dd1e

Some content is hidden

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

43 files changed

+1410
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ playground.xcworkspace
5252
Packages/
5353
Package.pins
5454
Package.resolved
55-
*.xcodeproj
55+
# *.xcodeproj
5656
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
5757
# hence it is not needed unless you have added a package configuration file to your project
5858
.swiftpm

Example/LookingGlassUIExample.xcodeproj/project.pbxproj

Lines changed: 414 additions & 0 deletions
Large diffs are not rendered by default.

Example/LookingGlassUIExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
//
2+
// ArrowRotationView.swift
3+
// ReflectiveUIExample
4+
//
5+
// Created by Ryan Lintott on 2021-05-13.
6+
//
7+
8+
import LookingGlassUI
9+
import SwiftUI
10+
11+
struct ArrowRotationView: View {
12+
let type: DeviceRotationEffectType
13+
14+
init(_ type: DeviceRotationEffectType) {
15+
self.type = type
16+
}
17+
18+
var body: some View {
19+
Color.clear
20+
.overlay(
21+
LookingGlass(type, distance: 10, perspective: 1, pitch: .degrees(45), yaw: .zero, localRoll: .zero, isShowingInFourDirections: true) {
22+
Color.gray
23+
.frame(width: 100, height: 100)
24+
.fixedSize()
25+
.overlay(
26+
Image(systemName: "arrow.up.and.person.rectangle.portrait")
27+
.resizable()
28+
.scaledToFit()
29+
.padding()
30+
.foregroundColor(.white)
31+
)
32+
}
33+
)
34+
.overlay(
35+
Color.blue.opacity(0.3)
36+
.frame(width: 100, height: 100)
37+
)
38+
}
39+
}
40+
41+
struct ArrowRotationView_Previews: PreviewProvider {
42+
static var previews: some View {
43+
ArrowRotationView(.reflection)
44+
.motionManager(updateInterval: 0)
45+
}
46+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"colors" : [
3+
{
4+
"idiom" : "universal"
5+
}
6+
],
7+
"info" : {
8+
"author" : "xcode",
9+
"version" : 1
10+
}
11+
}
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "app-icon-20@2x~iphone.png",
5+
"idiom" : "iphone",
6+
"scale" : "2x",
7+
"size" : "20x20"
8+
},
9+
{
10+
"filename" : "app-icon-20@3x~iphone.png",
11+
"idiom" : "iphone",
12+
"scale" : "3x",
13+
"size" : "20x20"
14+
},
15+
{
16+
"filename" : "app-icon-29@2x~iphone.png",
17+
"idiom" : "iphone",
18+
"scale" : "2x",
19+
"size" : "29x29"
20+
},
21+
{
22+
"filename" : "app-icon-29@3x~iphone.png",
23+
"idiom" : "iphone",
24+
"scale" : "3x",
25+
"size" : "29x29"
26+
},
27+
{
28+
"filename" : "app-icon-40@2x~iphone.png",
29+
"idiom" : "iphone",
30+
"scale" : "2x",
31+
"size" : "40x40"
32+
},
33+
{
34+
"filename" : "app-icon-40@3x~iphone.png",
35+
"idiom" : "iphone",
36+
"scale" : "3x",
37+
"size" : "40x40"
38+
},
39+
{
40+
"filename" : "app-icon-60@2x~iphone.png",
41+
"idiom" : "iphone",
42+
"scale" : "2x",
43+
"size" : "60x60"
44+
},
45+
{
46+
"filename" : "app-icon-60@3x~iphone.png",
47+
"idiom" : "iphone",
48+
"scale" : "3x",
49+
"size" : "60x60"
50+
},
51+
{
52+
"filename" : "app-icon-20@1x~ipad.png",
53+
"idiom" : "ipad",
54+
"scale" : "1x",
55+
"size" : "20x20"
56+
},
57+
{
58+
"filename" : "app-icon-20@2x~ipad.png",
59+
"idiom" : "ipad",
60+
"scale" : "2x",
61+
"size" : "20x20"
62+
},
63+
{
64+
"filename" : "app-icon-29@1x~ipad.png",
65+
"idiom" : "ipad",
66+
"scale" : "1x",
67+
"size" : "29x29"
68+
},
69+
{
70+
"filename" : "app-icon-29@2x~ipad.png",
71+
"idiom" : "ipad",
72+
"scale" : "2x",
73+
"size" : "29x29"
74+
},
75+
{
76+
"filename" : "app-icon-40@1x~ipad.png",
77+
"idiom" : "ipad",
78+
"scale" : "1x",
79+
"size" : "40x40"
80+
},
81+
{
82+
"filename" : "app-icon-40@2x~ipad.png",
83+
"idiom" : "ipad",
84+
"scale" : "2x",
85+
"size" : "40x40"
86+
},
87+
{
88+
"filename" : "app-icon-76@1x~ipad.png",
89+
"idiom" : "ipad",
90+
"scale" : "1x",
91+
"size" : "76x76"
92+
},
93+
{
94+
"filename" : "app-icon-76@2x~ipad.png",
95+
"idiom" : "ipad",
96+
"scale" : "2x",
97+
"size" : "76x76"
98+
},
99+
{
100+
"filename" : "app-icon-83.5@2x~ipad.png",
101+
"idiom" : "ipad",
102+
"scale" : "2x",
103+
"size" : "83.5x83.5"
104+
},
105+
{
106+
"filename" : "app-icon-1024@1x~ios-marketing.png",
107+
"idiom" : "ios-marketing",
108+
"scale" : "1x",
109+
"size" : "1024x1024"
110+
}
111+
],
112+
"info" : {
113+
"author" : "xcode",
114+
"version" : 1
115+
}
116+
}
85.1 KB
Loading
1.01 KB
Loading
1.66 KB
Loading

0 commit comments

Comments
 (0)