Skip to main content
Filter by
Sorted by
Tagged with
4 votes
1 answer
161 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
1 vote
2 answers
68 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
-4 votes
1 answer
61 views

How to make it possible to place the buttons slightly below and to the right of a regular window without using (toolbar, navigationSpitView, etc) like in the Chrome or FireFox browsers the image ...
Evgeniy Petrukovich's user avatar
1 vote
0 answers
76 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
1 vote
2 answers
59 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
1 answer
65 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
  • 443
Advice
0 votes
5 replies
45 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
2 answers
58 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
-2 votes
0 answers
51 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
-2 votes
1 answer
41 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,845
1 vote
1 answer
70 views

I have a SwiftUI view that switches between two completely different container layouts: a TabView layout (for compact width) a sidebar + content layout using HStack (for regular width). I am using a ...
Andrei Herford's user avatar
2 votes
1 answer
40 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
1 vote
1 answer
38 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
0 answers
36 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
-1 votes
0 answers
33 views

The issue I'm having is that, even though scrolling with the trackpad and the drag gesture both work to flip through pages in the scrollview, the animation when landing on a page is jerky and not ...
KaliforniaGator's user avatar
0 votes
0 answers
23 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
  • 443
0 votes
0 answers
23 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.1k
0 votes
0 answers
23 views

So, I have SwiftUI project, which is multi-modular project. All the modules are included in the form of SPM. Everything works fine until now when we are required to integrate third party sdks which ...
Abu Bäkr's user avatar
  • 343
Advice
0 votes
0 replies
32 views

I am trying to place a custom view so that it will cover, partially, predictive text panel from the iOS keyboard. However i can't seem to manage implementing it, the predictive text panel is always ...
Andrew's user avatar
  • 55