Skip to content

Commit adedf4b

Browse files
committed
Fix error
1 parent cc4f2f0 commit adedf4b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

iOStarter.xcodeproj/project.pbxproj

+5-5
Original file line numberDiff line numberDiff line change
@@ -431,11 +431,11 @@
431431
E2FD8DB127FECB5B003F5BA4 /* Library */ = {
432432
isa = PBXGroup;
433433
children = (
434+
E2FD8DBA27FECB5B003F5BA4 /* CameraController */,
434435
E2FD8DB227FECB5B003F5BA4 /* Notify.swift */,
435436
E2FD8DB427FECB5B003F5BA4 /* ToastView.swift */,
436437
E2FD8DB627FECB5B003F5BA4 /* CheckBox.swift */,
437438
E2FD8DB827FECB5B003F5BA4 /* PickerField.swift */,
438-
E2FD8DBA27FECB5B003F5BA4 /* CameraController */,
439439
);
440440
path = Library;
441441
sourceTree = "<group>";
@@ -1024,7 +1024,7 @@
10241024
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
10251025
CODE_SIGN_ENTITLEMENTS = iOStarter/iOStarter.entitlements;
10261026
CODE_SIGN_STYLE = Automatic;
1027-
CURRENT_PROJECT_VERSION = 1.3.0;
1027+
CURRENT_PROJECT_VERSION = 1;
10281028
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
10291029
GENERATE_INFOPLIST_FILE = NO;
10301030
INFOPLIST_FILE = "iOStarter/Supporting Files/Info.plist";
@@ -1033,7 +1033,7 @@
10331033
"$(inherited)",
10341034
"@executable_path/Frameworks",
10351035
);
1036-
MARKETING_VERSION = 1.3.0;
1036+
MARKETING_VERSION = 1.4.0;
10371037
PRODUCT_BUNDLE_IDENTIFIER = com.dypme.starter;
10381038
PRODUCT_NAME = "$(TARGET_NAME)";
10391039
SWIFT_EMIT_LOC_STRINGS = YES;
@@ -1051,7 +1051,7 @@
10511051
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
10521052
CODE_SIGN_ENTITLEMENTS = iOStarter/iOStarter.entitlements;
10531053
CODE_SIGN_STYLE = Automatic;
1054-
CURRENT_PROJECT_VERSION = 1.3.0;
1054+
CURRENT_PROJECT_VERSION = 1;
10551055
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
10561056
GENERATE_INFOPLIST_FILE = NO;
10571057
INFOPLIST_FILE = "iOStarter/Supporting Files/Info.plist";
@@ -1060,7 +1060,7 @@
10601060
"$(inherited)",
10611061
"@executable_path/Frameworks",
10621062
);
1063-
MARKETING_VERSION = 1.3.0;
1063+
MARKETING_VERSION = 1.4.0;
10641064
PRODUCT_BUNDLE_IDENTIFIER = com.dypme.starter;
10651065
PRODUCT_NAME = "$(TARGET_NAME)";
10661066
SWIFT_EMIT_LOC_STRINGS = YES;

iOStarter/Example/UI/LoginView.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ struct LoginView: View {
3434
if isSuccess {
3535
presentationMode.wrappedValue.dismiss()
3636
} else {
37-
ToastView()
38-
.show(text: message)
37+
ToastView(text: message)
38+
.show()
3939
}
4040
}
4141
}

iOStarter/View/Alert/AlertController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class AlertController: ViewController {
151151
window.addSubview(self.view)
152152

153153
if parentController == nil {
154-
parentController = UIApplication.shared.currentActiveController()
154+
parentController = window.rootViewController?.currentActiveController()
155155
}
156156
if let alerts = parentController?.children.compactMap({ $0 as? AlertController }) {
157157
alerts.forEach { (controller) in

0 commit comments

Comments
 (0)