Use for questions specific to Apple's iOS 15 mobile operating system, released in 2021. General iOS questions should use the [ios] tag.
Questions tagged [ios15]
573 questions
4
votes
1 answer
Swift 5.5 AttributedString doesn't show in interface
Here's the Swift 5.5 way to make an attributed string:
let s = "Hello"
var attrib = AttributedString(s)
if let range = attrib.range(of: "ell") {
attrib[range].foregroundColor = .red
self.label.attributedText =…

matt
- 515,959
- 87
- 875
- 1,141
4
votes
1 answer
iOS 15 - Notification sounds are not playing for foreground notifications
What is the right way to play a tone associated with notification in iOS 15 without displaying banner or list?
When handling notifications in foreground, both local and push, notification sounds are not playing if UNNotificationPresentationOptions…

return0
- 93
- 11
4
votes
0 answers
Programmatically creating the new iOS15 FaceTime Links
I've been trying to figure out if in iOS15, there will be a way to create a FaceTime link through our own apps, so that the app can be used as a sort of booking tool.
I've searched online and the closest thing I found was the old URL scheme that…

Jeff Cournoyer
- 474
- 2
- 12
4
votes
1 answer
iOS 15 beta 4: AttributedString with Markdown not rendering in Text in SwiftUI?
I assumed this was a iOS 15 beta 1 or 2 bug, but as of beta 4 I'm still seeing this behavior, so perhaps I'm doing something wrong:
Text is supposed to render AttributedStrings with Markdown. It appears to render correctly when a direct String…

UberJason
- 3,063
- 2
- 25
- 50
4
votes
0 answers
xcode 13 build issues
I currently updated my spare phone to ios 15 developer beta to begin fixes for ios 15 on my app and was forced to upgrade my mac os to big sur as well as download xcode 13 beta and ever since then have run into so many headaches. I can never…

allenhinson214
- 165
- 8
4
votes
2 answers
NavigationLink inside .searchable does not work
I understand its new, but this seems like pretty basic functionality that is not here. When implementing a .searchable in the new iOS 15, it would seem that a NavigationLink does not work, at all.
Ideally, the searchable would produce a filtered…

JerseyDevel
- 1,334
- 1
- 15
- 34
3
votes
1 answer
How do you add an image attachment to an AttributedString?
I'm working to replace NSAttributedString with AttributedString but have been unsuccessful in getting attachments to work. The image doesn't appear in the string despite the fact I applied the attachment.
let textAttachment = NSTextAttachment(image:…

Jordan H
- 52,571
- 37
- 201
- 351
3
votes
1 answer
SwiftUI View .tint(_ Color) method doesn't work
I'm trying to change tint color for View.
What I got:
var body: some View {
Button {
selectedTab = title
} label: {
VStack(alignment: .center) {
image.renderingMode(.template)
Text(title)
…

Sergey Udalov
- 75
- 1
- 7
3
votes
1 answer
Support if-else ios 15 or lower than ios 15
I have specific line of code which only execute if ios version is lower than 15.
I could if-else if ios is great 15 by these.
if #available(iOS 15.0, *) {} else {}
I would to do opposite of it. If ios version is lower than 15 then execute specfic…

EN_Tech
- 67
- 6
3
votes
1 answer
Grouped UITableView have small extra space on bottom on iOS 15+
Grouped UITableview has an extra small space on the bottom on iOS 15+
this functions doesn't help
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
…

Mixorok
- 125
- 9
3
votes
2 answers
PHPickerViewController's Cancel Button is not working in iOS 15
I am using PHPickerViewController to pick Image for User Profile Picture Purpose in iOS 15. I am using UIKit framework. I have the following code:
var pickerConfig = PHPickerConfiguration(photoLibrary: .shared())
pickerConfig.selectionLimit =…

Kris2k
- 275
- 2
- 12
3
votes
1 answer
swiftui ios15 keyboard avoidance issue on custom textfield
Repost question from this Adjust View up with Keyboard show in SwiftUI 3.0 iOS15.
SwiftUI keyboard avoidance won't show the whole textfield including the overlay.
I already tried a lot different ways from googling.
Does anyone have any solution for…

Lch
- 31
- 2
3
votes
2 answers
Is offering a "Restore Purchases" option mandatory when using only StoreKit2 in iOS 15?
This is a fairly simple question, but couldn't find the answer with research.
I know with the original StoreKit API, you had to offer a user the ability to restore purchases. However, with StoreKit2, the WWDC video explains that restoring purchases…

Eric
- 569
- 4
- 21
3
votes
1 answer
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 sample code would be appreciated.
As it's a newly…

Asar
- 71
- 11
3
votes
1 answer
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#"] options:@{} completionHandler:nil];
It didn't show…

Yasir Ali
- 426
- 3
- 8