Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
-5 votes
0 answers
122 views

'onChange(of:perform:) was deprecated in iOS 17.0: Use onChange with a two or zero parameter action closure instead? [closed]

struct SudokuCellView: View { @Binding var value: Int? var onCommit: (Int?) -> Void var body: some View { TextField("", value: $value, formatter: NumberFormatter()) ...
user19193418's user avatar
0 votes
1 answer
58 views

Core Bluetooth cancelPeripheralConnection not disconnecting peripheral in iOS 17

In iOS 17, I'm encountering an issue where cancelPeripheralConnection from Core Bluetooth does not disconnect the peripheral device, and no error is returned. This is specifically occurring on iOS 17, ...
Meet Patel's user avatar
0 votes
2 answers
89 views

in iOS17 UIKit is there a way to change/affect the border color of an iOS17 UITextField (other than the mangle shown here)?

This is about iOS 17 only. The only way I could hack around and achieve something like this was find the actual, real, border, get its real values sadly just add a fake on top of that layer once ...
Fattie's user avatar
  • 13.9k
0 votes
0 answers
44 views

Crashed: com.apple.network.connection EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000d25b5b890

i have strange crash on OS version: iPadOS 17.1.0 ,i can't reproduce. Crashed: com.apple.network.connection-208 0 libobjc.A.dylib 0x3150 objc_retain_x23 + 16 1 Network ...
Hilmi Lalu's user avatar
-4 votes
1 answer
46 views

Returning Drive Names? [closed]

I want to write code for an iOS17 Project that will be able to show me what Devices or Drives the App can physically see, like: iCloud Macintosh HD USB I am able to find a FileManager but I think ...
Fritzables's user avatar
1 vote
1 answer
50 views

Adjust padding on wrapped lines in TextField (Swift)

I am using a multiline text field that wraps the text vertically to new lines. Is there a way to adjust the padding for the wrapped lines, not including the first line? I am trying to have subsequent ...
skyper12345's user avatar
0 votes
1 answer
142 views

How to Add a New Marker by Tapping on a Map in SwiftUI iOS 17?

I am trying to achieve a similar functionality to Google Maps. When my user clicks on an existing marker, a sheet pops up showing them a page with the details of the marker. However, if they click on ...
devOP1's user avatar
  • 327
0 votes
1 answer
162 views

How to decouple Swift Data from a SwiftUI view in order to make the view available as a Swift Package?

I am working with Swift Data (iOS 17 or higher only) and SwiftUI on iOS. This question is probably only worth reading (or deciding whether to vote to close!!!) if you are highly active with this ...
User45i6h45ih3455's user avatar
0 votes
0 answers
41 views

Dismiss keyboard not calling on entire VStack

Implementing a dismiss keyboard function as an extension of View, and then calling in my view. It doesn't seem to work too well. It seems like you have to click at very specific places to get the ...
Yuda's user avatar
  • 45
2 votes
1 answer
178 views

failed compiling with xcodebuild, swift package manager, iOS 17 and swift-confidential

My app compiles, validates and stores correctly from Xcode IDE using the library swift-confidential (a tool for obfuscating Swift literals). But I cannot use Xcode on my osx server so I need to use ...
Alessandro Ornano's user avatar
0 votes
0 answers
60 views

Simulate in XCUITest app state restoration since iOS 17

After migrating to iOS 17.4 I no longer able to change my application state to .runningBackgroundSuspended. So far I've been using XCUIApplication(waitForState:timeout:) and tapping on home button to ...
Szu's user avatar
  • 2,252
1 vote
0 answers
129 views

How to save a file in Files iOS system app in iOS 17 Swift

Since iOS 17, I can't find a way to save a file (.pdf, .mp3, .m4a, etc.) in the "Files" iOS system app in Swift. I am using Xcode 15.2. In iOS 15 and iOS 16, here is my code and it works on ...
Ghiggz Pikkoro's user avatar
0 votes
1 answer
127 views

Where to place floating buttons to move up/down based on presented sheet dynamic height?

I'm new to SwiftUI. I want to place a floating button on Map, but this needs to move based on bottom presenting sheet. Bottom present sheet height will be dynamic and it will minimise and maximise ...
Lokesh Chowdary's user avatar
0 votes
2 answers
358 views

How to remove the empty space from TabView using page style in SwiftUI?

I have a NavigationStack where I have a TabView and its style as page style and a List after the TabView. Inside the TabView I have another custom view that has a horizontal List and I want to remove ...
s_diaconu's user avatar
  • 305
1 vote
1 answer
197 views

Modify Swift UI view without using iOS 17 modifier

I have some code below that creates a custom navigation stack that enables full screen swipes to navigation away from the view. I want to support iOS 17 with this custom Navigation stack but some of ...
Ahmed Zaidan's user avatar

15 30 50 per page
1
2 3 4 5
8