Questions tagged [ios15]
Use for questions specific to Apple's iOS 15 mobile operating system, released in 2021. General iOS questions should use the [ios] tag.
567
questions
1
vote
1
answer
16
views
TextField In Tab View will show space upon keyboard
I'm using text field in Tab view, but when keyboard shows out. There has a space upon keyboard.
enter image description here
var body: some View {
TabView {
TestView()
}
...
0
votes
0
answers
14
views
Trying to display submitted forms in Swiftui as a table or navigation view
Trying to display submitted forms in Swiftui as a table or navigation view here is what i have so far
I am fairly new to xcode, have been using it around 3-4 months
Ive cut out some of the code
Trying ...
0
votes
0
answers
16
views
Command CompileSwift failed with a nonzero exit code No such module 'Reachability'
when i have transfer my xcode project from xcode 12.4 to xcode 13.4 i get below error :
Command CompileSwift failed with a nonzero exit code
No such module 'Reachability'
1
vote
0
answers
6
views
WKWebView iOS 15 is not responding to select element HTML
WKWebView is not responding to a simple HTML select tag.
let html = """
<!DOCTYPE html>
<html>
<body>
<select>
<...
0
votes
0
answers
17
views
How to make UIPickerView float in the center in iOS?
I have a UIPickerView in Cordova based application. I am seeing different appearance for the same UIPickerView in iOS 14 and iOS 15.
For iOS 14: It looks like this: (Fixed at the bottom)
For iOS 15 ...
0
votes
0
answers
37
views
Watch OS simulator not loading, getting "DYLD_ROOT_PATH not set for simulator" error
I have having a strange issue while adding watch app target in my existing project. After adding watch app as target in my app, when I try to load watch app simulator , it simply crashes & only ...
0
votes
2
answers
42
views
Desired menu picker text color not being shown properly
I have two views: CreateExerciseView and RepsViewStyle. Although CreateExerciseView has other view elements, I will condense the code to demonstrate my specific issue. It seems that the picker is not ...
0
votes
0
answers
16
views
iOS 15 - UIButtons checking themselves due to tableView.reloadData()
With the recent changes requiring builds to be done on xcode 13, we have run into a problem where on iOS 15 ONLY, UIButtons are checking themselves. In this particular situation, we have a button that,...
0
votes
0
answers
19
views
iOS Observe Call State Logs via heard daemon (accessibility service)
I am doing some iPhone automation and want to observe call states of ongoing calls. I implemented a listener to read the idevicesyslog and fetch log output of com.apple.accessibility.heard, which is ...
0
votes
0
answers
42
views
iOS 15 build by xcode 13 crash on collectionView performBatchUpdates
After updating xcode to xcode 13. My app start giving crash on the collectionview where it is using performBatchUpdates on ios 15.
It's working fine on lower ios version.
dispatch_async(...
1
vote
0
answers
52
views
How to switch between static color to blur Tab Bar depending on Light/Dark Theme in SwiftUI
I tried to do this but it doesn't work properly
struct TabBar: View {
@Environment(\.colorScheme) var colorScheme
var body: some View {
TabView(...) {
...
}
...
-1
votes
1
answer
47
views
Align Subtitles and Footers with LazyVGrid?
I have a question about using LazyVGrid to align the subtitles and footers for each column. Say I have a view like this:
Title
Subtitle A Subtitle B Subtitle C
row1A row1B ...
0
votes
0
answers
40
views
Foundation: _userInfoForFileAndLine (Fatal Exception: NSInternalInconsistencyException) in IOS
I'm getting error report from Crashlytics.
Fatal Exception: NSInternalInconsistencyException
Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES.
Is there anyone know ...
0
votes
0
answers
9
views
Unable to generate .ipa through xcodebuild with universal distribution for enterprise account
I'm trying to generate Enterprise distribution build from jenkins job. I was able to build and generate the .ipa for Adhoc Distribution(Developer Account), but when i create a new job and set up the ...
0
votes
1
answer
25
views
Using UIBarButtonItemAppearance have both the system and the custom back button images
I am using UIBarButtonItemAppearance for the first time and I'm confused on how to put a custom image for the back button.
This is how I do it:
private func createBarButtonAppearence(_ color: UIColor, ...
0
votes
1
answer
84
views
Standalone PWA shows ◀Untitled instead of actual PWA name?
On iPhone running iOS 15.4.1, there seems to be an issue, where the back button to our PWA shows “◀Untitled” and not the actual PWA’s name or short name (see image below).
Same PWA on iOS 12.2 (left) ...
0
votes
0
answers
10
views
how to detect app launch event from SharePlay
I am working on an app having SharePlay feature in it. I am looking for a mechanism to know when my app has been open through SharePlay invite on FaceTime call. Is it possible to get that event? Any ...
0
votes
1
answer
102
views
Set not Removing Duplicate Dates
I have a structure that displays entries sorted by date. The date is displayed once for all entries of the same date. The problem I have is that Set
is not removing duplicate dates. If I have two ...
2
votes
1
answer
63
views
Customisable SwiftUI Refresh spinner
I currently have a simple SwiftUI ScrollView that contains a single element. I have added the .refreshable(action: ) property to allow (pull down) refreshing of the view. However, this will only ...
3
votes
0
answers
35
views
Getting Applications from DeviceActivityEvent swift
I'm trying to use DeviceActivityEvent.
var comps = DateComponents()
comps.month = 4
let event = DeviceActivityEvent( threshold: comps)
Tried above approaches but no good. Any help/tutorial or a ...
3
votes
1
answer
53
views
Tel URI containing * and # is not working on iOS 15 and onwards
Tel URIs containing * and # are not working on iOS 15 and onwards. When I try to execute the following statement
[UIApplication.sharedApplication openURL:[NSURL URLWithString:@"tel://*21*12345#&...
0
votes
0
answers
12
views
During Cloudkit query neither recordFetchedBlock or recordMatchedBlock getting called but queryCompletionBlock runs without error
I have an app that queries a Cloudkit public database.
This worked perfectly in previous versions, but after an update to ios15 it started behaving oddly and I realised that the recordFetchedBlock is ...
0
votes
0
answers
76
views
Save Operation Timing Issue Not Display the Newest Entry
I have a structure to display a list of bank / ATM withdrawal entries, and another structure to create a new entry for display in the list. When I press the save button after entering a new entry, ...
0
votes
0
answers
41
views
What's wrong with this View in SwiftUI
could someone help me figure out what's wrong within this view? Can you see the status bar and bottom view refreshing like crazy? I've tried several things like playing with paddings and margins ...
1
vote
3
answers
93
views
How to switch the statusBarStyle with the new syntax to remove deprecated warnings?
how am I supposed to change this piece of code?
The current solutions for this problem either cover older iOS versions
or are unanswered.
This is the line:
UIApplication.shared.statusBarStyle = ....
0
votes
0
answers
23
views
Seeing gap while reloading table view iOS 15
At the first launch I don't see any space.
No space seen
But while testing in iOS 15 I'm seeing small space in two cells after reloading the table view.
Thanks for the response in advance.
Space seen ...
1
vote
3
answers
71
views
Getting Result out of a Task
I have an asynchronous function that returns the result of an App Store query (was the query successful or not displayed in an alert). I am having trouble getting the result out of the task--Cannot ...
0
votes
2
answers
137
views
IOS 15 UIButton right alignment not working
In IOS 15, Even after setting button text alignment to right, it leaves little space after the button title text.
As shown in the following image it leaves the space after the word Test.
How can I ...
0
votes
0
answers
36
views
Socket disconnect when moving the application in the background
Application moving in background and foreground state should not hamper socket connectivity.
How can we resolve this issue with the existing lib implementation?
I am using this library.
0
votes
0
answers
18
views
UINavigationBar appearance in UISplitViewController detail on iPad
I'm using UISplitViewController and customise the appearance of my UINavigationBar via UIAppearance and its working as expected for the most part.
I want to change the navigation to pure white (Red in ...
0
votes
1
answer
56
views
SwiftUI: How can I add a new component to the list? Idea: Click the "plus"-button, enter a "Text", store it and... it's been added to the List
So here is the declaration of the variable (passwordNewName):
@State var passwordNewName = ""
It is being updated from the input of a TextField which I coded to accept user's data.
So the ...
0
votes
0
answers
31
views
Custom UITableViewCell Edit View
I've been looking over countless questions and answers here on SO, but could not find one that would provide the answer for my specific problem.
In a nutshell: I am trying to implement a custom edit ...
-1
votes
1
answer
73
views
Sorting Filtered Data by Date
I have some swiftUI logic that display entries by date and only displays the date if there is a change in date. It works great, thanks to: Display Entry Date with Change in Orientation. The one ...
0
votes
1
answer
39
views
Display Entry Date with Change in Orientation
I am struggling to get a function to display the date only if it is the first date in a list or an entry with a different date from the previous entry date. The code appears to work correctly except ...
0
votes
2
answers
263
views
Copy/Paste not working in XCode 13 Simulators with M1 Macbook Pro
Copy/Paste not working on Xcode 13 with M1 Macbook Pro simulators. It was working on a normal Mac PC.
0
votes
0
answers
149
views
iOS 15 Build Times Considerably Slower than 14 Using Debugger – Possible Debugger Issue
Recently upgraded my device to iOS 15.2 and I have another device on hand which I upgraded to iOS 15.3. Previously I was building a project which uses coreML, and another project that doesnt use ...
0
votes
0
answers
34
views
MDM commands not reaching to iPhone
I am working on an enterprise application which runs on supervised devices.
It uses MDM commands to perform certain operation for which we created our own MDM server and communication between our ...
0
votes
0
answers
84
views
Cannot use Voice Isolation with AVAudioRecorder or AudioUnit
I'm trying to record voice audio with either AVAudioRecorder or AUAudioUnit.
In both, after a recording has started, whenever calling AVCaptureDevice.showSystemUserInterface(.microphoneModes) and ...
0
votes
2
answers
298
views
How to change hyper link text color in SwiftUI
I am trying to custom change the default font color of hyperlink in a given markdown string with SwiftUI. Something equivalent to txtString.linkTextAttributes = [ .foregroundColor: UIColor.red ] of ...
0
votes
1
answer
120
views
Appium test shows "Automation Running" overlay on iOS15 - How can I get rid of it?
I am using a tool to automate tests on iPhones. The tool uses Appium as the test framework. In iOS version 15, the screen shows a dark overlay with the text "Automation Running". I am aware ...
4
votes
0
answers
293
views
How to add Picture in Picture (PIP) for WebRTC Video Calls in iOS Swift
We have used the following steps of integrating PIP (Picture in Picture) for WebRTC Video Call:
We are enabling mode of Audio, Airplay, and Picture in Picture capability in our project.
We have ...
0
votes
0
answers
22
views
Oracle Custom Application content is not loading within Iframe in Iphone after Upgrade to IOS15
I created a custom oracle application which is working fine in Windows browser and android browsers, but not working within iframe in IOS15. Previously, it was working fine but after upgradation in ...
0
votes
1
answer
67
views
Copy CoreData data to CSV file
I am trying to use fileExport logic to copy history data from CoreData to a CSV file. Since the data is coming from CoreData I need to use @FetchRequest and it is my understanding that @FetchRequest ...
-1
votes
1
answer
102
views
How to hide the three dots on the top area of the iPad dynamically
I have an iPad app which does have support for split screen multitasking. However there are some views which can display images and videos in full screen. On these screens the multitasking controls at ...
0
votes
0
answers
37
views
(iOS) asciiCapableNumberPad shows different characters than expected -> (:, ;) instead of showing (8, 9)
Simulator case:
When I click on one of the numbers on the keypad it shows a completely different number. However, it types the correct value.
Real Device case: (iPhone 13 pro max) (ios 15)
The ...
0
votes
0
answers
46
views
iOS: App freezes when start typing in UISearchBar
I have a UICollectionViewController and I show the search bar when the user taps on a button. But when the user start typing in the search field the app freezes and the memory starts skyrocking on ...
0
votes
0
answers
29
views
IOS 15 select listitem disappearing on bookmarked website
Alright so in the link below someone already described my issue that I am encountering.
https://developer.apple.com/forums/thread/699982
Basically means that on bookmarked pages on IOS 15, if you ...
2
votes
2
answers
161
views
ToolbarItemGroup in .toolbar {} doesn't work in a Sheet
I'm using SwiftUI 3.0, Swift 5.5 and Xcode 13.2, tested on iOS 15.3 iPhone device, and iOS 15.2 iPhone simulator.
I have tested the following.
This is a view, with a TextField, a focused state and a ....
0
votes
1
answer
98
views
ScrollViewReader .scrollTo method doesn't allow padding when scrolling to TextField
I'm using Xcode 13.2 and building for iOS 15.0 + with SwiftUI 3.0 and Swift 5
Here is my code:
ScrollViewReader { value in
VStack {
List(0..<things.count, id: \.self) { index in
VStack {...
0
votes
0
answers
31
views
Trouble with Date.ParseStrategy not recognizing month: .abbreviated
I am trying to convert a string date into a Date with the following code:
let myStrategy = Date.ParseStrategy(format: "\(month: .abbreviated) \(day: .twoDigits), \(year: .defaultDigits) at \(...