mirror of
https://github.com/jeremysrand/ListenerApp.git
synced 2024-11-28 15:49:58 +00:00
Actively disconnect when the GSView goes away.
This commit is contained in:
parent
cdd4a8ea82
commit
b9dc17aef4
@ -90,6 +90,8 @@ struct GSView: View {
|
||||
}
|
||||
.alert(item: $connection.errorMessage) { errorMessage in
|
||||
Alert(title:Text(errorMessage.title), message: Text(errorMessage.message))
|
||||
}.onDisappear {
|
||||
connection.disconnect()
|
||||
}
|
||||
|
||||
Text(connection.textHeard)
|
||||
|
@ -19,7 +19,7 @@
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>780</string>
|
||||
<string>785</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string>public.app-category.utilities</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
|
Loading…
Reference in New Issue
Block a user