Skip to content

Commit 0b40747

Browse files
committed
fix #3
1 parent e0352ec commit 0b40747

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
### Fixes
11+
* title and msg where swapped ([#3](https://github.com/rustunit/bevy_ios_alerts/issues/3))
12+
1013
## [0.3.0] - 2024-12-02
1114

1215
### Changes

rust/bevy_ios_alerts/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,19 @@ impl Plugin for IosAlertsPlugin {
6464
fn process_events(mut events: EventReader<IosAlert>, _main_thread: NonSend<NonSendRes>) {
6565
while let Some(e) = events.read().next() {
6666
match e {
67-
IosAlert::Message { msg, title, button } => native::popup_msg(msg, title, button),
67+
IosAlert::Message { msg, title, button } => native::popup_msg(title, msg, button),
6868
IosAlert::Dialog {
6969
msg,
7070
title,
7171
button_yes,
7272
button_no,
73-
} => native::popup_dialog(msg, title, button_yes, button_no),
73+
} => native::popup_dialog(title, msg, button_yes, button_no),
7474
IosAlert::Input {
7575
msg,
7676
title,
7777
button,
7878
placeholder,
79-
} => native::popup_input(msg, title, button, placeholder),
79+
} => native::popup_input(title, msg, button, placeholder),
8080
IosAlert::Dismiss => native::popup_dismiss_current(),
8181
}
8282
}

0 commit comments

Comments
 (0)