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.

573 questions
7
votes
3 answers

Toolbar bottom iOS 16 - SwiftUI

I would like to have a bottom toolbar with SwiftUI. The following is working in iOS 15, but not in iOS 16. In iOS 16 the toolbar is not showing. (It's working if I change the placement...) Text("Content") .toolbar { …
Maxime
  • 73
  • 1
  • 5
7
votes
2 answers

How do I view logs from a REMOTE iOS device using the unified logging system?

First, it's important to know that, OSLogStore didn't work in iOS as recently as 4 months ago. Since that's so recent and documentation is so sparse, what may have been true a year ago may not be true today. Here's some context to my question…
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356
7
votes
0 answers

How do we get iOS 15.1 simulator?

For our projects we need to be get our build and release infrastructure with latest Xcode and iOS releases. Apple has released Xcode 13.1 and iOS 15.1 on last week of October 2021, but there are no iOS 15.1 targets(simulators) for running tests…
nakeer
  • 641
  • 1
  • 9
  • 17
7
votes
1 answer

How to workaround broken UIKeyboardLayoutGuide with Navigation Views?

iOS 15 added the new and shiny UIKeyboardLayoutGuide to be able to put constraints on views that need to react with the keyboard. This works great in a single view, but when you have constraints set up in View A and push View B onto the stack the…
Fab1n
  • 2,103
  • 18
  • 32
7
votes
0 answers

SwiftUI EditButton on List stopped working in iOS 15

I used a SwiftUI EditButton() together with a List(), however it suddenly stopped working with iOS15. I do not use a wrapping NavigationView though, however, it worked nicely before. Using a NavigationView is anyways not an option for me. struct…
Leo
  • 1,508
  • 13
  • 27
7
votes
2 answers

setNavigationBarHidden not working on iOS 15

I'm having troubles with the method setNavigationBarHidden, it doesn't seem to work properly on iOS 15. I am currently working with this structure: A ViewController, which needs the navigationBar Another ViewController, pushed from the previous…
Libreage
  • 71
  • 3
7
votes
4 answers

Xcode debug on iOS15 - blank white screen and minutes delay before App starts

Since upgrading my iPhone to iOS 15 and upgrading to Xcode 13 on my Mac, I have a problem with testing/debugging ANY SwiftUI app using Xcode. Even a new Xcode project with the simple "hello world" example behaves this way when the Xcode "Start"…
Gerard
  • 1,807
  • 4
  • 13
  • 20
7
votes
3 answers

SwiftUI - Perform action when cancel is clicked - .searchable function

When using the .searchable(text: $text) function, a cancel button appears in the search bar when searching. Is there any way to perform an action when the cancel button is clicked? I would like to call a function when cancel is clicked, but cannot…
nickreps
  • 903
  • 8
  • 20
7
votes
0 answers

SwiftUI How to use .refreshable view modifier without a list?

iOS 15 introduces the '.refreshable' View Modifier, but most of the examples I've seen use a List. I want to implement a pull to refresh feature in an app that does not use a list but just a VStack with Text views like the below. How can I…
GarySabo
  • 5,806
  • 5
  • 49
  • 124
7
votes
1 answer

Swift async/await equivalent of Promise Kit "when" pattern

I'm new to Swift, coming from JS, and I've started to build an iOS app. Initially I went down the road, using Promise Kit for the async stuff, as it seemed easier to me than other things I read about. Regardless, in JS, I use the following pattern a…
Kim
  • 856
  • 1
  • 11
  • 21
7
votes
1 answer

iOS 15 Gap between navigation bar and table view

With iOS 15 beta and Xcode 13 beta 2 some custom UITableViewControllers has decided to add padding between the navigation bar and the table view. Steps to reproduce: Add two UITableViewControllers so the structure looks like this:…
dumle
  • 79
  • 1
  • 4
6
votes
2 answers

SwiftUI NavigationView vs NavigationStack for iOS 15/16

I'm trying to make my iPhone apps (targeting iOS 15 and above) fully compatible with iOS 16 without success! I don't know how to have NavigationView for iOS 15 and NavigationStack for iOS 16 in the same piece of code. The code above isn't accepted…
Alexnnd
  • 429
  • 4
  • 13
6
votes
2 answers

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 display the default grey spinner when pulling to…
Connor Ung
  • 61
  • 1
  • 2
6
votes
2 answers

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 .toolbar import SwiftUI struct test: View { …
Sam Chahine
  • 530
  • 1
  • 17
  • 52
6
votes
2 answers

Where is Self._printChanges() defined and/or documented for SwiftUI?

I have seen a few articles or video's on iOS 15's new Self._printChanges() function, but can not find any documentation on it anywhere. Does anyone know where Apple documented this new function? It is pretty obvious how to use it, but I would like…
JustMe
  • 319
  • 3
  • 11