File tree 4 files changed +12
-11
lines changed
4 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 1
1
.DS_Store
2
2
/.build
3
+ build /
3
4
/Packages
4
5
xcuserdata /
5
6
DerivedData /
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import PackageDescription
6
6
let package = Package (
7
7
name: " NSIcon " ,
8
8
platforms: [
9
- . macOS ( . v12 ) , . iOS ( . v15 ) , . watchOS( . v9 )
9
+ . iOS ( . v15 ) , . macOS ( . v12 ) , . watchOS( . v8 )
10
10
] ,
11
11
products: [
12
12
. library(
Original file line number Diff line number Diff line change @@ -23,19 +23,19 @@ extension AppPlatform {
23
23
var mask : some View {
24
24
switch self {
25
25
case . iOS:
26
- AnyView {
26
+ return AnyView (
27
27
Image ( " AppIconMask " , bundle: . module)
28
28
. resizable ( )
29
- }
29
+ )
30
30
case . macOS:
31
- AnyView {
31
+ return AnyView (
32
32
Image ( " MacAppIconMask " , bundle: . module)
33
33
. resizable ( )
34
- }
34
+ )
35
35
case . watchOS:
36
- AnyView { Circle ( ) }
36
+ return AnyView ( Circle ( ) )
37
37
case . visionOS:
38
- AnyView { Circle ( ) }
38
+ return AnyView ( Circle ( ) )
39
39
}
40
40
}
41
41
}
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ extension Image {
21
21
func appIconMask( _ platform: AppPlatform ) -> some View {
22
22
switch platform {
23
23
case . macOS:
24
- AnyView {
24
+ return AnyView (
25
25
GeometryReader { geometry in
26
26
let shadowRadius = min ( geometry. size. width, geometry. size. height) * ( 10 / 1024 )
27
27
let iconScale = CGFloat ( 824 / 1024 )
@@ -35,13 +35,13 @@ extension Image {
35
35
height: geometry. frame ( in: . global) . height)
36
36
}
37
37
. aspectRatio ( 1 , contentMode: . fit)
38
- }
38
+ )
39
39
default :
40
- AnyView {
40
+ return AnyView (
41
41
self
42
42
. iconDefault ( )
43
43
. mask { platform. mask }
44
- }
44
+ )
45
45
}
46
46
}
47
47
}
You can’t perform that action at this time.
0 commit comments