Skip to main content
Filter by
Sorted by
Tagged with
3 votes
2 answers
65 views

I wanted to try out the new .presentationBackground modifier from iOS 16.4+ for a clear background in a Sheet. Stack Overflow posts like this suggest it's possible. But the presentationBackground just ...
Plato's user avatar
  • 813
2 votes
1 answer
68 views

I’m running into an issue with remote push notifications on iOS. When the app is in background or inactive, tapping a notification correctly triggers: userNotificationCenter(_:didReceive:...
Thakgrandka's user avatar
0 votes
2 answers
95 views

I’m trying to build an image carousel similar to the one in the App Store, but I'm a facing a lay-out issue. The carousel should: Automatically adjust its height based on its content Automatically ...
Hozen's user avatar
  • 89
1 vote
2 answers
61 views

I'm having a difficult time trying to figure out how to increase both the height AND the tappable area of a TextField. I've tried these three solutions, and none have worked for me. I still can't tap ...
user5893820's user avatar
-1 votes
1 answer
70 views

When I use navigationTitle in SwiftUI, the top padding becomes too large. However, in Apple’s own apps the top area is noticeably smaller and more compact. How can I achieve the same native look with ...
Shakhzod's user avatar
1 vote
1 answer
106 views

before updating to iOS 26 my list was looking fine but now it has abnormal paddings and because I am using fixed height, I had to increase the height from 40 to 60 to fit the text. There are currently ...
iosDev73's user avatar
1 vote
1 answer
62 views

I want to be able to give these ends a corner radius of 5 instead of sharp square ends. lineCap only supports .round, .butt and .square How can I create a custom corner radius for the lineCap? Here is ...
Aditya Vyavahare's user avatar
0 votes
0 answers
66 views

I am trying to apply .glassEffect to some controls that are in a horizontal scroll view in a bottom .safeAreaBar. No matter what I try, there is a persistent pesky flickering of the background that I ...
Andrei G.'s user avatar
  • 2,676
1 vote
0 answers
55 views

I use a custom AppTheme type and inject it via a custom EnvironmentKey. Views can access the theme using @Environment(\.appTheme) or override it explicitly. While this work fine in most cases it ...
Andrei Herford's user avatar
1 vote
0 answers
55 views

I'm trying to show a fullScreenCover when the user taps the third tab instead of actually switching to that tab. The issue is that resetting selectedTab = oldValue in onChange breaks the ...
Mehmet Baykar's user avatar
0 votes
1 answer
53 views

I have the following code which shows a blue background and a persistent sheet that always shows. In the top left, I want to add a back button that floats above BOTH the blue background and sheet, and ...
user5893820's user avatar
-3 votes
0 answers
46 views

Upgraded to iOS 26.1 and now getting a white capsule behind my StyleSheet buttons: The View code is: ToolbarItem(placement: .topBarLeading) { Button { ...
Edward Hasted's user avatar
1 vote
1 answer
49 views

I have created a reusable ModalDialog view that presents modal content via .fullScreenCover. Inside this dialog, a button triggers a SwiftUI .alert. This works fine in many situations. However, in a ...
Andrei Herford's user avatar
0 votes
0 answers
48 views

I'm building a macOS app using SwiftUI, and I want to create a draggable floating webcam preview window Right now, I have something like this: import SwiftUI import AVFoundation struct ...
Zaid's user avatar
  • 451
0 votes
1 answer
71 views

I’m building a reusable custom bottom sheet component in SwiftUI because my app supports iOS 15, so I can’t use .sheet with detents yet. Functionally everything works the sheet opens and closes but I’...
K. Janjuha's user avatar
1 vote
1 answer
50 views

I'm working on vertical paging, using TabView. I put player code in TabView and rotate it to show vertical paging, but UI breaks. Vertical Pager struct EpisodeVerticalPager: View { let episodes: ...
steveSarsawa's user avatar
  • 1,730
Advice
0 votes
2 replies
43 views

Let's use a basic todo app as an example - sharing a todo list. I have a share button (square with up arrow) that when the user taps I want the initial share sheet to appear. If I have to create and ...
Cocoanut's user avatar
  • 664
Advice
1 vote
2 replies
32 views

I’m trying to learn iOS swift UI development working through some of the Apple tutorials I came across this piece of code. I don’t understand how the onDelete modifier works. This may be more of a ...
JJF's user avatar
  • 2,776
-2 votes
0 answers
31 views

I’m working on a screen that uses a single SwiftUI List composed of: a top block (statistics, month picker, year selector, total, Entrata/Uscita picker). a list of transactions grouped by day, each ...
Alessandro's user avatar
1 vote
1 answer
74 views

I’m integrating achievements and leaderboards into my SwiftUI app and would like to present the Game Center dashboard directly from within SwiftUI. However, it seems the only supported way to show the ...
Jeffrey's user avatar
  • 677
1 vote
1 answer
37 views

I have severe UI hang issues whenever my sync worker is running. The app experiences: Screen navigation freezes Scroll lag and stuttering Unresponsive UI during data synchronization The root cause is ...
Hassan Riaz's user avatar
Advice
0 votes
1 replies
58 views

So in iOS 26, the search field changed a bit where it can be at the bottom. While other apps have the search in the nav bar, wallet has it in the toolbar, so when it's pressed it changes to a ...
Chefski's user avatar
  • 43
0 votes
0 answers
21 views

let provider = NSItemProvider() if model.type == .rich { if let attr = NSAttributedString( with: model.data, type: model.pasteboardType ...
king crown's user avatar