I want to clarify that this issue only occurs in Xcode 16. Everything worked fine in version 15. The problem happens both in my existing project and even if I create a new, completely clean project.
Post
Replies
Boosts
Views
Activity
When I delete content the array is updated, only when I add to the array it does not work. the savedEntities get the new content, but the historyArray the not updated! even i call updateFilteredContacts() again.
i call to addSubscribers() only in init but if i call it from if newPhase == .active or .onChange(of:
vm.searchText) i still not updated the array
Thank you very much, but
inString.firstRange
is available from ios 16
like this: Setting > Privacy & Security > Location Service > My app.
Yes I know, but I want to get to the Location settings directly for my app
It's not the same
from left is list (swiftui) and from right is tableview (uikit)
how i can make tableview like list (swiftui)?
yes this i know but i want the user choose color from author view
This Code:
I mean version ios 14 and up
var didDetectOutgoingCall = false
func showCallAlert() {
guard let url = URL(string: "tel:+36201234567"),
UIApplication.shared.canOpenURL(url) else {
return
}
callObserver.setDelegate(self, queue: nil)
didDetectOutgoingCall = false
UIApplication.shared.open(url, options: [:]) { [weak self] success in
if success {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) {
self?.addNotifObserver()
}
}
}
}
func addNotifObserver() {
let selector = #selector(appDidBecomeActive)
let notifName = UIApplication.didBecomeActiveNotification
NotificationCenter.default.addObserver(self, selector: selector, name: notifName, object: nil)
}
@objc func appDidBecomeActive() {
//if callObserver(_:callChanged:) doesn't get called after a certain time,
//the call dialog was not shown - so the Cancel button was pressed
DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) { [weak self] in
if !(self?.didDetectOutgoingCall ?? true) {
print("Cancel button pressed")
}
}
}
func callObserver(_ callObserver: CXCallObserver, callChanged call: CXCall) {
if call.isOutgoing && !didDetectOutgoingCall {
didDetectOutgoingCall = true
print("Call button pressed")
}
}
if i can the func showCallAlert() from anther viewcontroller it not detected if print("Cancel button pressed") or print("Call button pressed"), why?
it for IOS
I tried it and it also does not work,
It prints me at the console:
whose view is not in the hierarchy window.
To the third question:
Yes I am sure and I too made sure it was HomeVC (And I also took care of capital letters)
whose view is not in the window hierarchy.
it IOS
on console it print:
identifier HomeVC
homeViewController nil
self.view.window nil
DispatchQueue.main.async {
self.transitionToHomeVC()
}
not working..