File tree Expand file tree Collapse file tree 16 files changed +843
-0
lines changed
Expand file tree Collapse file tree 16 files changed +843
-0
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 1+ # SwiftUI2-MacSidebar
2+ A quick demo to build a macOS Application with easy sidebar.
3+
4+ ## Environment:
5+ Apple macOS 11 Big Sur
6+
7+ ## Tools :
8+ Xcode 12 beta 3 (Min: Xcode 12 beta 1)
9+
10+ ## Development :
11+ SwiftUI with multi-platform
12+
13+ ### Screenshot
14+ <img src =" https://raw.githubusercontent.com/1998code/SwiftUI2-MacSidebar/master/light.png " />
15+ <img src =" https://raw.githubusercontent.com/1998code/SwiftUI2-MacSidebar/master/dark.png " />
Original file line number Diff line number Diff line change 1+ {
2+ "colors" : [
3+ {
4+ "idiom" : " universal"
5+ }
6+ ],
7+ "info" : {
8+ "author" : " xcode" ,
9+ "version" : 1
10+ }
11+ }
Original file line number Diff line number Diff line change 1+ {
2+ "images" : [
3+ {
4+ "idiom" : " iphone" ,
5+ "scale" : " 2x" ,
6+ "size" : " 20x20"
7+ },
8+ {
9+ "idiom" : " iphone" ,
10+ "scale" : " 3x" ,
11+ "size" : " 20x20"
12+ },
13+ {
14+ "idiom" : " iphone" ,
15+ "scale" : " 2x" ,
16+ "size" : " 29x29"
17+ },
18+ {
19+ "idiom" : " iphone" ,
20+ "scale" : " 3x" ,
21+ "size" : " 29x29"
22+ },
23+ {
24+ "idiom" : " iphone" ,
25+ "scale" : " 2x" ,
26+ "size" : " 40x40"
27+ },
28+ {
29+ "idiom" : " iphone" ,
30+ "scale" : " 3x" ,
31+ "size" : " 40x40"
32+ },
33+ {
34+ "idiom" : " iphone" ,
35+ "scale" : " 2x" ,
36+ "size" : " 60x60"
37+ },
38+ {
39+ "idiom" : " iphone" ,
40+ "scale" : " 3x" ,
41+ "size" : " 60x60"
42+ },
43+ {
44+ "idiom" : " ipad" ,
45+ "scale" : " 1x" ,
46+ "size" : " 20x20"
47+ },
48+ {
49+ "idiom" : " ipad" ,
50+ "scale" : " 2x" ,
51+ "size" : " 20x20"
52+ },
53+ {
54+ "idiom" : " ipad" ,
55+ "scale" : " 1x" ,
56+ "size" : " 29x29"
57+ },
58+ {
59+ "idiom" : " ipad" ,
60+ "scale" : " 2x" ,
61+ "size" : " 29x29"
62+ },
63+ {
64+ "idiom" : " ipad" ,
65+ "scale" : " 1x" ,
66+ "size" : " 40x40"
67+ },
68+ {
69+ "idiom" : " ipad" ,
70+ "scale" : " 2x" ,
71+ "size" : " 40x40"
72+ },
73+ {
74+ "idiom" : " ipad" ,
75+ "scale" : " 1x" ,
76+ "size" : " 76x76"
77+ },
78+ {
79+ "idiom" : " ipad" ,
80+ "scale" : " 2x" ,
81+ "size" : " 76x76"
82+ },
83+ {
84+ "idiom" : " ipad" ,
85+ "scale" : " 2x" ,
86+ "size" : " 83.5x83.5"
87+ },
88+ {
89+ "idiom" : " ios-marketing" ,
90+ "scale" : " 1x" ,
91+ "size" : " 1024x1024"
92+ },
93+ {
94+ "idiom" : " mac" ,
95+ "scale" : " 1x" ,
96+ "size" : " 16x16"
97+ },
98+ {
99+ "idiom" : " mac" ,
100+ "scale" : " 2x" ,
101+ "size" : " 16x16"
102+ },
103+ {
104+ "idiom" : " mac" ,
105+ "scale" : " 1x" ,
106+ "size" : " 32x32"
107+ },
108+ {
109+ "idiom" : " mac" ,
110+ "scale" : " 2x" ,
111+ "size" : " 32x32"
112+ },
113+ {
114+ "idiom" : " mac" ,
115+ "scale" : " 1x" ,
116+ "size" : " 128x128"
117+ },
118+ {
119+ "idiom" : " mac" ,
120+ "scale" : " 2x" ,
121+ "size" : " 128x128"
122+ },
123+ {
124+ "idiom" : " mac" ,
125+ "scale" : " 1x" ,
126+ "size" : " 256x256"
127+ },
128+ {
129+ "idiom" : " mac" ,
130+ "scale" : " 2x" ,
131+ "size" : " 256x256"
132+ },
133+ {
134+ "idiom" : " mac" ,
135+ "scale" : " 1x" ,
136+ "size" : " 512x512"
137+ },
138+ {
139+ "idiom" : " mac" ,
140+ "scale" : " 2x" ,
141+ "size" : " 512x512"
142+ }
143+ ],
144+ "info" : {
145+ "author" : " xcode" ,
146+ "version" : 1
147+ }
148+ }
Original file line number Diff line number Diff line change 1+ {
2+ "info" : {
3+ "author" : " xcode" ,
4+ "version" : 1
5+ }
6+ }
Original file line number Diff line number Diff line change 1+ //
2+ // ContentView.swift
3+ // Shared
4+ //
5+ // Created on 29/7/2020.
6+ //
7+
8+ import SwiftUI
9+
10+ struct ContentView : View {
11+ var body : some View {
12+ Text ( " Hello, world! " )
13+ Text ( " This is SwiftUI 2. " ) . padding ( )
14+ }
15+ }
16+
17+ struct ContentView_Previews : PreviewProvider {
18+ static var previews : some View {
19+ ContentView ( )
20+ }
21+ }
Original file line number Diff line number Diff line change 1+ //
2+ // Demo_SidebarApp.swift
3+ // Shared
4+ //
5+ // Created on 29/7/2020.
6+ //
7+
8+ import SwiftUI
9+
10+ @main
11+ struct SidebarApp : App {
12+ var body : some Scene {
13+ WindowGroup {
14+ SidebarView ( )
15+ }
16+ }
17+ }
You can’t perform that action at this time.
0 commit comments