LAST CHANCE: Save 50% on all my Swift books and bundles! >>

Forums > SwiftUI

Help and discussion for SwiftUI.

  Title Replies Views Activity

About the SwiftUI forum

3

7304

May '20

Using SwiftData with a Widget leads to deadlock

2

478

46m

How to synchronize a parameter selection that is being delayed with dependent computations in SwiftUI? DispatchQueue.main.async doesn't seem to work

3

31

15h

LazyVGrid not updating correctly

0

17

17h

@State date stays the same among multiple views

0

21

22h

new developer, need help displaying on screen

0

38

1d

Swift Data and Fetching from the database not working as expected.

0

24

2d

SOLVED: Speech-to-text: View not updating with transcription

1

24

2d

Please help with animation

3

67

3d

What would be the Best way to download a file? REST API or directly from a URL?

1

49

6d

Is the .refreshable view modifier inherited by all the subviews within an HStack?

0

24

7d

How to Address Swift6 when using UIDevice.current.userInterfaceIdiom

0

46

9d

Day 19: Solved : **I would like someone to grade my code or let me know if i have made any mistakes? Why my simulator shows two done while building this code.

0

44

10d

How do you use @Bindable togheter with inferred relationship?

2

71

10d

How do I put Pencil into my application?

0

36

11d

SOLVED: Passing @EnvironmentObject to NavigationDestination

1

78

13d

How can I update a @StateObject / @EnvironmentObject from a function?

4

106

14d

SOLVED: Can I write a query for two SwiftData models?

3

139

15d

Can't filter SwiftData @Query based on an @EnvironmentObject

1

72

15d

Switch vs if else in a SwiftUI view... is there a reason to avoid switch?

2

118

16d

Keyboard shrinks my whole screen so it is hard to type in my texteditor

0

48

17d

Best practices for shared @ModelActor and Actors with Swift 6

0

108

17d

How do I fix : List encountered an issue computing the margins for a cell. Please file a bug report.

4

155

18d

How to Implement a Dictation Button for Custom Input Fields in SwiftUI?

0

62

18d

SOLVED: How do I create a List Section based on an empty related field in SwiftData?

3

475

19d

SOLVED: SwiftData deletions not triggering a View update - SOLVED

4

173

20d

Accessing app functions from a widget

0

46

20d

Choosing to display one or other ScrollView blocks the second one

3

112

20d

Stopping audio playblack when another disclosure group is opened in voice recorder app

0

43

23d

Using TextFormattingCommands() with TextEditor

1

89

23d

Creating a progress slider in SwiftUI for AVAudioPlayer using Combine

1

94

24d

Compact screens, keyboard and dynamic type UI issues

0

47

24d

Nested JSON - I am lost

3

221

26d

Can I prevent the preview from crashing and showing the crash report?

3

218

27d

Day 84: 'Caching' an Image (using @State vs computed property).

0

96

29d

Bug with SwiftUI ColorPicker and SwiftData

1

171

29d

ScrollView : expand views from centre ?

1

146

Jun 16

Staggered animation for ScrollView content

0

75

Jun 15

SwiftData For Model Containing [Any]

1

157

Jun 14

TabView Not Updating Correctly

2

234

Jun 10

why can't I append to my list

5

300

Jun 10

Moonshot Challenge #3 navigationDestination getting discarded

0

72

Jun 10

How to prevent app from going into background state

1

154

Jun 10

Creating a navigation link within a chart?

0

91

Jun 9

SwiftData `isStoredInMemoryOnly: true` not working on macOS + iCloud?

4

772

Jun 8

SOLVED: Is there a way to solve this simple bit of code?

5

308

Jun 8

Voiceover cursor in TabView jumps to previous tab

0

95

Jun 8

scrollTo not working with List

1

178

Jun 8

Purple Warning Help - This code path does interprocess communication underneath

0

89

Jun 7

SOLVED: Day 37 - Closing Sheets

4

317

Jun 6

Problem: UltimatePortfolio - 28. SwiftUI user interface test (Simulator crash due to UITests )

0

93

Jun 5

SOLVED: How to run Firebase Messaging in SwiftUI

1

194

Jun 5

SOLVED: one alert shows but other doesn't

3

300

Jun 4

Why is SwiftData element not deleting when .confirmation is used?

0

102

Jun 2

SOLVED: SwiftData Relationship woes

3

293

Jun 2

Is there a way to use NavigationStack(path:) and navigationDestination(for:, destination:) but open different types of views?

0

126

Jun 2

SwiftData question

0

131

Jun 1

SwiftData and SwiftUI: ForEach doesn't display my SwiftUI views

0

156

Jun 1

Animation problem/bug

0

117

Jun 1

A view that combines a list and a grid in SwiftUI iOS

2

236

May 30

Addition of fonts to Xcode/SwiftUI project failure

0

119

May 30

Update toggle on incomming TCP packet

0

105

May 30

SwiftUI View not recomputing on change of @ObservableObject

4

443

May 30

Why are computed properties allow to be published in iOS 17?

1

210

May 29

UltimatePortfolio Project: Unable to initialize without a valid iCloud account

11

3110

May 29

How to transfer the line parameter from figma to swiftUI layout?

3

1735

May 27

How do I fix this weird behavior while sorting a List using SwiftData?

0

121

May 27

SOLVED: Extend view into the background of another view

4

330

May 27

SOLVED: Conditional Alerts

3

1185

May 26

SOLVED: iOS 17 Issue with Alerts that worked in iOS 16

4

3544

May 26

SOLVED: Day 61: Codable Conformance for SwiftData Model Class

3

367

May 26

Getting a lot of errors marked red in the terminal window, but the app works

0

160

May 25

SOLVED: Correction or Guidance

3

261

May 25

CarPlay with SwiftUI LifeCycle

0

220

May 24

How to get UserAnnotation to center on the bottom of the screen?

0

104

May 24

SOLVED: How can I unzip a file

3

566

May 23

SOLVED: Strange behavior of alert buttons

4

394

May 22

TextField in the example iExpense: currency value is not updated

2

241

May 21

View does just refresh after going back and then to it again

2

414

May 20

SOLVED: How to fix this weird animation issue

2

273

May 20

SOLVED: SwitData and NSEntityDescription error

1

224

May 19

Font recommendation

3

329

May 18

Picker from the toolbar in watchOS

0

163

May 18

SOLVED: How do I add Pull Down to refresh in WebView

6

551

May 18

Share Bug: First share attempt shows a blank sheet.

0

155

May 17

SOLVED: Preview crashes when trying to display SwiftData model

1

319

May '24

Rendering to PDF fails in iOS 17.4 (OK in iOS 17.2)

2

411

May '24

Conditional logic for submitLabel ?

2

214

May '24

SOLVED: How can I update a View from a function called by my Model?

3

368

May '24

.onChange does not trigger after pairing

0

210

May '24

SwiftUI 2023 : Is @AppStorage the elephant in the room ? What's the solution now if you go the MVVM way !?

6

3842

May '24

SOLVED: Picker won't update

1

176

May '24

NavigationStackView DetailView not reseting States and StateObjects when changing selection

0

142

May '24

Should I create a ModelContext or use the container.mainContext

0

149

May '24

Apple activity ring(sparkle effect)

2

251

May '24

Progress View- What am I missing

5

444

May '24

How does .asymmetric's insertion and removal works?

5

344

May '24

SOLVED: Removal transition of rectangle is not working

2

282

May '24

SOLVED: How to open a new WindowGroup with a SwiftData model in macOS

2

428

May '24

SOLVED: SwiftData enum No exact matches in call to instance method 'setValue' error

2

330

May '24

 
 

All interactions here are governed by our code of conduct.

Hacking with Swift is sponsored by Essential Developer.

SPONSORED Join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer! Hurry up because it'll be available only until July 28th.

Click to save your free spot now

Sponsor Hacking with Swift and reach the world's largest Swift community!

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.