My app communicates to another device through a Wireguard VPN. The two devices are configured to only speak to each other in the app through the VPN. Because of this, there is no reason for the VPN to be active (on the iOS device) when the app is not running.
Is there a way to hide the VPN from Settings or have the Network Extension check if the app is running and deactivate itself if the app is not running?
Post
Replies
Boosts
Views
Activity
My app is acting as a BLE Peripheral Device. I want the app to programmatically disconnect from the BLE Central. Is this possible?
Xcode Version 12.2 (12B45b) not launching apps on iPhone XS. The code compiles and Xcode says the app is running but the screen never updates.
Any ideas?
I have a published app. In the next version I added an action extension. This somehow changed the name of the IPA. Connect allows me to upload the IPA but does not recognize that it exists. I figured out how to force a change of name for the IPA before it is uploaded and now Connect sees it and starts "processing" it. But it disappears after a few minutes.
How can I fix this?
What is the right way of changing the IPA name?
Has anyone gotten @Environment(\.presentationMode) to work correctly on a device?When I try and use:self.presentation.value.dismiss()on a page pushed from a navigation link it works on the simulator but crashes on device.import SwiftUI
import Combine
struct ContentView: View {
@State private var showModal = false
@State private var showCamera = false
var body: some View {
NavigationView {
Text("Hello World")
.navigationBarTitle("", displayMode: .inline)
.navigationBarItems(
leading:
NavigationLink(
destination: ModalView(message: "Dismiss Push Test"),
label: {Text("Push Page")}),
trailing:
Button("Show modal") {
self.showModal = true
}.sheet(isPresented: $showModal, onDismiss: {
print(self.showModal)
}) {
ModalView(message: "Dismiss Modal view")
}
)
}
}
}
struct ModalView: View {
@Environment(\.presentationMode) var presentation
let message: String
var body: some View {
NavigationView {
Button(message) {
self.presentation.value.dismiss()
}
.navigationBarItems(trailing: Button("Done") {
self.presentation.value.dismiss()
})
}
}
}
I've built a Framework which I would like to use it in other applications.I know the basics on including and using frameworks.The problem is I really have TWO Frameworks the Device Framework and the Simulator Framework.Is there a way to tell XCode to use the right Framework?