Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
0 answers
28 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
0 answers
49 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
47 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
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
3 votes
2 answers
64 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
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
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
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
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
2 votes
1 answer
67 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
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
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
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
-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
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
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
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
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
2 votes
1 answer
91 views

I'm trying to implement a tab bar on iOS 26 like the Music or Health apps on iPhone. On a white background this is not noticeable, but when changing the background color to dark at the start of the ...
Artem T's user avatar
  • 23
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
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
1 answer
58 views

on macOS26 / 26.1 Tahoe the Toggle stopped being colored / tinted by using modifier .tint(toggleColor()) it just remains with the current system color... e.g. blue or the tint central to the whole ...
Peter Lapisu's user avatar
  • 21.2k
0 votes
1 answer
81 views

When I put a SwifUI segmented control in a navigation bar, liquid glass seems to be making it render incorrectly. The capsule has vertical clipping and the sides show layered backgrounds. Here is my ...
Siegfoult's user avatar
  • 1,867
2 votes
1 answer
81 views

I'm working on a SwiftUI app using SwiftData, and I'm very new to both frameworks, and swift in general to be honest. I'm trying to create a webview that embeds a monaco editor that will then send the ...
Fluster.IO's user avatar
1 vote
2 answers
91 views

I have a SwiftUI view with multiple TextFields and a @FocusState bound to my view model. I want the first field to automatically get focus whenever the view appears(when coming back from a SecondView)....
Whirlwind's user avatar
  • 12.6k
1 vote
1 answer
82 views

I’m building a macOS video editor that uses AVComposition and AVVideoComposition. Initially, my renderer creates a composition with some default video/audio tracks: @Published var composition: ...
Zaid's user avatar
  • 451
2 votes
2 answers
68 views

I’m using the @Observable, @Bindable in SwiftUI. I have a simple ViewModel with two properties: @Observable final class AlarmLevelSetupViewModel { var displayedValueLevel1: Decimal = 1 var ...
Matvei Kozin's user avatar
1 vote
1 answer
82 views

Premise I have a MultiDatePicker bounded to a closed range of the current month. In addition, I have a datePicker representing a "Start Date" that is the current day. I want the Day of the ...
tishly's user avatar
  • 67
4 votes
1 answer
180 views

I’m building a horizontal “carousel” style view in SwiftUI where items can be reordered by dragging (similar to an editor timeline). The basic idea: Items are laid out in a horizontal track inside a ...
Hector's user avatar
  • 3,651
Advice
0 votes
5 replies
54 views

I am exploring the use of drag gestures. Below is a small test code to see what happens and because I want to know the location on the screen / map. The first time I drag, it works fine, but when I ...
Erich Snijder's user avatar
1 vote
1 answer
56 views

I'm trying to create a SwiftUI Menu containing two Picker to control content and sort. However, I cannot replicate menu appearance shown in my reference screenshot. No matter which approach I try, I ...
Anton Genkin's user avatar
0 votes
1 answer
68 views

TL;DR: my app has some global alerts and modals (e.g. hints about trial limits, the in-app purchase screens, etc.) which should be available through out the app. In UIKit I could always present alerts ...
Andrei Herford's user avatar
-3 votes
1 answer
50 views

I'm experiencing inconsistent layout behavior with SwiftUI Text when using maxHeight constraints combined with fixedSize(). I have a long text string that behaves differently depending on the ...
ximmyxiao's user avatar
  • 2,923
2 votes
1 answer
109 views

I’m working with two iOS widgets (WidgetA and WidgetB) that both display the value of a flag stored in SwiftData. Each widget can update the flag by triggering an AppIntent when a button is pressed. ...
Petru Lutenco's user avatar
2 votes
1 answer
59 views

I want to use NavigationStack with a custom navigation path array supporting multiple destination types. For example: enum A: Hashable { ... } enum B: Hashable { ... } NavigationStack(path: $...
RMP's user avatar
  • 5,441
-2 votes
0 answers
56 views

I'm having trouble calculating the inverse homography that would draw the players on the 2D pitch in the view. The homography calculation seems perfect to me because the virtual pitch drawn on the ...
Massimiliano Chiodi's user avatar
0 votes
0 answers
63 views

I've seen apps that have interactive widget buttons where a short tap does nothing, but holding the button for at least 1 second executes the action. This can be configured per button in the widget ...
LevelOne2k's user avatar
1 vote
0 answers
29 views

I setup a clean MacOS Tahoe (26.2) project with this code import SwiftUI import AVKit @main struct TestVideoApp: App { let player = AVPlayer(url: URL(string: "https://www.w3schools.com/...
workingdog support Ukraine's user avatar
1 vote
0 answers
38 views

I found a reproducible issue in iOS 18+. When a SwiftUI TabView contains a Map (MKMapView), any custom UITabBarAppearance badge color is ignored while that tab is active. As soon as you switch to a ...
Vojta Böhm's user avatar
1 vote
1 answer
125 views

I created an extension on ToolbarContent in order to simplify code when using new SDKs technologies. public extension ToolbarContent { @available(iOS 17, macOS 13, *) @ToolbarContentBuilder ...
Meyssam's user avatar
  • 941
0 votes
0 answers
48 views

The top level of my app looks like: struct MyApp: App { var body: some Scene { DocumentGroup(newDocument: MyDocument()) { file in MyContentView(document: file.$document) ...
microtherion's user avatar
  • 4,098
0 votes
0 answers
27 views

I'm building a macOS app in SwiftUI and I'm trying to load a folder called Wallpapers that I added to my Xcode project. The folder contains subfolders (categories) and each category contains wallpaper ...
Zaid's user avatar
  • 451
1 vote
0 answers
79 views

In SwiftUI, you can dynamically size a TextField like this which expands vertically as the user types. TextField("Enter text", text: $text, axis: .vertical) I would like to do the same thing ...
Berry Blue's user avatar
  • 16.9k
0 votes
1 answer
75 views

This is what I want to achieve for the sidebar toggle button: When hovering: When not hovering: This is what I have now (macOS 26): When hovering: When not hovering: I want to remove the border ...
0xh8h's user avatar
  • 3,599
0 votes
1 answer
63 views

import SwiftUI struct OnboardingView: View { @ObservedObject var viewModel: OnboardingViewModel var body: some View { TabView(selection: $viewModel.currentPage) ...
Dias Kaussov's user avatar
0 votes
0 answers
299 views

I can’t remove the Liquid Glass / translucent blur background from the TabView (iOS 15+). I want the tab bar to be fully transparent so my custom background image shows through. Instead, the tab bar ...
tob1's user avatar
  • 1
1 vote
2 answers
65 views

As you can see in the image below, I want the left (star) and right (sun) views’ backgrounds to fill their parent (HStack) without using GeometryReader or altering the HStack’s natural height. struct ...
Avii's user avatar
  • 77
1 vote
2 answers
69 views

Normally in Swift 5.5+, Automatic Grammar Agreement allows you to inflect a word based on the quantity of an associated numerical variable, such as the following: Text("I have ^[\(dogCount) dogs](...
tishly's user avatar
  • 67

1
2 3 4 5
836