Skip to content

Commit 0fe6308

Browse files
committed
Introduce initial UI for connecting to networks
1 parent 51fd638 commit 0fe6308

33 files changed

+1453
-316
lines changed

.swiftlint.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ opt_in_rules:
4646
- multiline_parameters
4747
- multiline_parameters_brackets
4848
- no_extension_access_modifier
49-
- no_grouping_extension
5049
- nslocalizedstring_key
5150
- nslocalizedstring_require_bundle
5251
- number_separator
@@ -76,9 +75,7 @@ opt_in_rules:
7675
- sorted_first_last
7776
- sorted_imports
7877
- static_operator
79-
- strict_fileprivate
8078
- strong_iboutlet
81-
- switch_case_on_newline
8279
- test_case_accessibility
8380
- toggle_bool
8481
- trailing_closure
@@ -97,3 +94,5 @@ disabled_rules:
9794
- force_try
9895
- nesting
9996
- todo
97+
- trailing_comma
98+
- switch_case_on_newline

Apple/App/App.xcconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ INFOPLIST_KEY_UIStatusBarStyle[sdk=iphone*] = UIStatusBarStyleDefault
1111
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad[sdk=iphone*] = UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight
1212
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone[sdk=iphone*] = UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight
1313
TARGETED_DEVICE_FAMILY[sdk=iphone*] = 1,2
14+
EXCLUDED_SOURCE_FILE_NAMES = MainMenu.xib
1415

16+
EXCLUDED_SOURCE_FILE_NAMES[sdk=macosx*] =
17+
INFOPLIST_KEY_LSUIElement[sdk=macosx*] = YES
18+
INFOPLIST_KEY_NSMainNibFile[sdk=macosx*] = MainMenu
19+
INFOPLIST_KEY_NSPrincipalClass[sdk=macosx*] = NSApplication
1520
INFOPLIST_KEY_LSApplicationCategoryType[sdk=macosx*] = public.app-category.utilities
1621

1722
CODE_SIGN_ENTITLEMENTS = App/App-iOS.entitlements

Apple/App/AppDelegate.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import AppKit
33
import SwiftUI
44

55
@MainActor
6+
@NSApplicationMain
67
class AppDelegate: NSObject, NSApplicationDelegate {
78
private let quitItem: NSMenuItem = {
89
let quitItem = NSMenuItem(
@@ -16,7 +17,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
1617
}()
1718

1819
private let toggleItem: NSMenuItem = {
19-
let toggleView = NSHostingView(rootView: MenuItemToggleView(tunnel: BurrowApp.tunnel))
20+
let toggleView = NSHostingView(rootView: MenuItemToggleView())
2021
toggleView.frame.size = CGSize(width: 300, height: 32)
2122
toggleView.autoresizingMask = [.width]
2223

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" : "0x50",
9+
"green" : "0x37",
10+
"red" : "0xEC"
11+
}
12+
},
13+
"idiom" : "universal"
14+
}
15+
],
16+
"info" : {
17+
"author" : "xcode",
18+
"version" : 1
19+
}
20+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "flag-standalone-wtransparent.pdf",
5+
"idiom" : "universal"
6+
}
7+
],
8+
"info" : {
9+
"author" : "xcode",
10+
"version" : 1
11+
}
12+
}
Binary file not shown.
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" : "0x1A",
9+
"green" : "0x17",
10+
"red" : "0x88"
11+
}
12+
},
13+
"idiom" : "universal"
14+
}
15+
],
16+
"info" : {
17+
"author" : "xcode",
18+
"version" : 1
19+
}
20+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "WireGuard.svg",
5+
"idiom" : "universal"
6+
}
7+
],
8+
"info" : {
9+
"author" : "xcode",
10+
"version" : 1
11+
},
12+
"properties" : {
13+
"preserves-vector-representation" : true
14+
}
15+
}
Lines changed: 6 additions & 0 deletions
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "WireGuardTitle.svg",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"author" : "xcode",
19+
"version" : 1
20+
}
21+
}

0 commit comments

Comments
 (0)