Skip to main content
0 votes
1 answer
23 views

I'm trying to present a SwiftUI sheet with a fixed height of 550 points, and I expect it to remain 550 points tall on all iOS versions. .sheet(isPresented: $showSheet) { MySheetContent() ....
Areef Shaik's user avatar
1 vote
1 answer
47 views

check the screen shot As shown in the screenshot, I haven't added any extra definitions or styling. The white background behind the rounded corners appears in some places but not in others. Is there a ...
Hanoch's user avatar
  • 13
0 votes
0 answers
42 views

*EDIT 2: also seem to fix if I use a closure for the method instead of a bound method reference. EDIT: added full example All of a sudden I noticed the XCode Preview selection highlighting stopped ...
joepetrakovich's user avatar
0 votes
1 answer
46 views

I'm writing a SwiftUI app in which I'd like to have objects animate slowly when they change location and quickly when they disappear. I can't figure out how to achieve that. Take this example. There ...
Anton's user avatar
  • 3,399
1 vote
2 answers
54 views

I have a grid/tile view implemented like below: struct Grid: View { let size: Int var body: some View { LazyVStack(spacing: 0) { ForEach(0..<size) { _ in row } }...
Radioactive's user avatar
-4 votes
0 answers
33 views

Spent hours with multiple AIs. I export/import JSON, use ShareLink - all works. Except the icons. Tried single res 1024x1024. Three diff res for @2x and @3x. Nothing works - get generic icon, ...
Vlad Feinstein's user avatar
-4 votes
0 answers
50 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
0 votes
0 answers
62 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
  • 449
0 votes
0 answers
72 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
0 answers
59 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
0 votes
1 answer
76 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
64 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
Advice
0 votes
2 replies
52 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
3 votes
2 answers
71 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
1 vote
1 answer
111 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

15 30 50 per page
1
2 3 4 5
2785