Skip to content

Commit 2272b12

Browse files
committed
Update Invisible
1 parent ad70b96 commit 2272b12

3 files changed

Lines changed: 34 additions & 35 deletions

File tree

Demo/What's New?.xcodeproj/project.pbxproj

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
3A46CBB4285444CD00BE79A3 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3A46CBB3285444CD00BE79A3 /* Assets.xcassets */; };
1313
3A46CBB8285444CD00BE79A3 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3A46CBB7285444CD00BE79A3 /* Preview Assets.xcassets */; };
1414
3A46CBCE28544C9C00BE79A3 /* data.json in Resources */ = {isa = PBXBuildFile; fileRef = 3A46CBCD28544C9C00BE79A3 /* data.json */; };
15-
3A5AE5CD2854996D0006FE13 /* SwiftNEW in Frameworks */ = {isa = PBXBuildFile; productRef = 3A5AE5CC2854996D0006FE13 /* SwiftNEW */; };
15+
3AB7E09128630E380059EEFE /* SwiftNEW in Frameworks */ = {isa = PBXBuildFile; productRef = 3AB7E09028630E380059EEFE /* SwiftNEW */; };
1616
/* End PBXBuildFile section */
1717

1818
/* Begin PBXFileReference section */
@@ -24,14 +24,15 @@
2424
3A46CBB7285444CD00BE79A3 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
2525
3A46CBC4285447F600BE79A3 /* SwiftNEW */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = SwiftNEW; path = ../../../SwiftNEW; sourceTree = "<group>"; };
2626
3A46CBCD28544C9C00BE79A3 /* data.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = data.json; sourceTree = "<group>"; };
27+
3AB7E08E28630E2A0059EEFE /* SwiftNEWKit */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = SwiftNEWKit; path = ..; sourceTree = "<group>"; };
2728
/* End PBXFileReference section */
2829

2930
/* Begin PBXFrameworksBuildPhase section */
3031
3A46CBA9285444CC00BE79A3 /* Frameworks */ = {
3132
isa = PBXFrameworksBuildPhase;
3233
buildActionMask = 2147483647;
3334
files = (
34-
3A5AE5CD2854996D0006FE13 /* SwiftNEW in Frameworks */,
35+
3AB7E09128630E380059EEFE /* SwiftNEW in Frameworks */,
3536
);
3637
runOnlyForDeploymentPostprocessing = 0;
3738
};
@@ -41,8 +42,10 @@
4142
3A46CBA3285444CC00BE79A3 = {
4243
isa = PBXGroup;
4344
children = (
45+
3AB7E08D28630E2A0059EEFE /* Packages */,
4446
3A46CBAE285444CC00BE79A3 /* What's New? */,
4547
3A46CBAD285444CC00BE79A3 /* Products */,
48+
3AB7E08F28630E380059EEFE /* Frameworks */,
4649
);
4750
sourceTree = "<group>";
4851
};
@@ -76,6 +79,21 @@
7679
path = "Preview Content";
7780
sourceTree = "<group>";
7881
};
82+
3AB7E08D28630E2A0059EEFE /* Packages */ = {
83+
isa = PBXGroup;
84+
children = (
85+
3AB7E08E28630E2A0059EEFE /* SwiftNEWKit */,
86+
);
87+
name = Packages;
88+
sourceTree = "<group>";
89+
};
90+
3AB7E08F28630E380059EEFE /* Frameworks */ = {
91+
isa = PBXGroup;
92+
children = (
93+
);
94+
name = Frameworks;
95+
sourceTree = "<group>";
96+
};
7997
/* End PBXGroup section */
8098

8199
/* Begin PBXNativeTarget section */
@@ -93,7 +111,7 @@
93111
);
94112
name = "What's New?";
95113
packageProductDependencies = (
96-
3A5AE5CC2854996D0006FE13 /* SwiftNEW */,
114+
3AB7E09028630E380059EEFE /* SwiftNEW */,
97115
);
98116
productName = "What's New?";
99117
productReference = 3A46CBAC285444CC00BE79A3 /* What's New?.app */;
@@ -124,7 +142,6 @@
124142
);
125143
mainGroup = 3A46CBA3285444CC00BE79A3;
126144
packageReferences = (
127-
3A5AE5CB2854996D0006FE13 /* XCRemoteSwiftPackageReference "SwiftNEWKit" */,
128145
);
129146
productRefGroup = 3A46CBAD285444CC00BE79A3 /* Products */;
130147
projectDirPath = "";
@@ -277,7 +294,7 @@
277294
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
278295
CODE_SIGN_ENTITLEMENTS = "What's New?/What_s_New_.entitlements";
279296
CODE_SIGN_STYLE = Automatic;
280-
CURRENT_PROJECT_VERSION = 5;
297+
CURRENT_PROJECT_VERSION = 7;
281298
DEVELOPMENT_ASSET_PATHS = "\"What's New?/Preview Content\"";
282299
DEVELOPMENT_TEAM = "";
283300
ENABLE_HARDENED_RUNTIME = YES;
@@ -310,7 +327,7 @@
310327
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
311328
CODE_SIGN_ENTITLEMENTS = "What's New?/What_s_New_.entitlements";
312329
CODE_SIGN_STYLE = Automatic;
313-
CURRENT_PROJECT_VERSION = 5;
330+
CURRENT_PROJECT_VERSION = 7;
314331
DEVELOPMENT_ASSET_PATHS = "\"What's New?/Preview Content\"";
315332
DEVELOPMENT_TEAM = "";
316333
ENABLE_HARDENED_RUNTIME = YES;
@@ -359,21 +376,9 @@
359376
};
360377
/* End XCConfigurationList section */
361378

362-
/* Begin XCRemoteSwiftPackageReference section */
363-
3A5AE5CB2854996D0006FE13 /* XCRemoteSwiftPackageReference "SwiftNEWKit" */ = {
364-
isa = XCRemoteSwiftPackageReference;
365-
repositoryURL = "https://github.com/1998code/SwiftNEWKit";
366-
requirement = {
367-
branch = main;
368-
kind = branch;
369-
};
370-
};
371-
/* End XCRemoteSwiftPackageReference section */
372-
373379
/* Begin XCSwiftPackageProductDependency section */
374-
3A5AE5CC2854996D0006FE13 /* SwiftNEW */ = {
380+
3AB7E09028630E380059EEFE /* SwiftNEW */ = {
375381
isa = XCSwiftPackageProductDependency;
376-
package = 3A5AE5CB2854996D0006FE13 /* XCRemoteSwiftPackageReference "SwiftNEWKit" */;
377382
productName = SwiftNEW;
378383
};
379384
/* End XCSwiftPackageProductDependency section */

Demo/What's New?.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 0 additions & 14 deletions
This file was deleted.

Demo/What's New?/ContentView.swift

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,21 @@ struct ContentView: View {
1818
@State var labelImage: String = "arrow.up.circle.fill"
1919
var body: some View {
2020
NavigationView {
21+
// MARK: Choose either one size
2122

2223
// MARK: Normal
2324
SwiftNEW(show: $showNew, align: $align, color: $color, size: $size, label: $label, labelImage: $labelImage)
2425

2526
.toolbar {
26-
// MARK: Mini
27-
SwiftNEW(show: $showNew, align: $align, color: $color, size: .constant("mini"), label: $label, labelImage: $labelImage)
27+
ToolbarItemGroup(placement: .navigationBarLeading) {
28+
// MARK: Invisible
29+
SwiftNEW(show: $showNew, align: $align, color: $color, size: .constant("invisible"), label: $label, labelImage: $labelImage)
30+
}
31+
ToolbarItemGroup(placement: .navigationBarTrailing) {
32+
// MARK: Mini
33+
SwiftNEW(show: $showNew, align: $align, color: $color, size: .constant("mini"), label: $label, labelImage: $labelImage)
34+
}
35+
2836
}
2937

3038
}

0 commit comments

Comments
 (0)