UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

Forums > SwiftUI

Help and discussion for SwiftUI.

  Title Replies Views Activity

About the SwiftUI forum

3

7016

May '20

HOW TO READ DATA WITH FIRESTORE AND SWIFTUI

0

3

43m

SOLVED: How to let views remain the same on different iPhone screens

42

336

49m

@ObservedObject not changing on child view and it makes no sense

3

46

11h

Why do I get a "Publishing changes from within view updates is not allowed, this will cause undefined behavior" error

2

50

16h

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

0

7

17h

Day 19: Challenge Day

1

33

17h

Apple App Store privacy policy generator ?

0

15

20h

How to make a loop in a View with vars? Solved!!

0

26

21h

In app purchase Storekit SwiftUI button grayed out after purchase is complete in iOS 17

2

158

2d

How to catch move start/finish events, when moving rows in a SwiftUI List with the `onMove` method?

0

21

2d

SwiftUI SwiftData mentor

0

28

2d

SwiftUI View Alignment Issue on Device Orientation Change and App Background to Foreground Transition

2

51

3d

SOLVED: Selected item on Sidebar forced back to nil when returning from Detail view (on iPhone)

1

43

3d

Time for a VisionOS forum? And a question about custom materials...

2

228

4d

SOLVED: Debugging Out of Memory Help

14

315

4d

HOW TO GET RID OF DELAY IN WEBVIEW

0

39

6d

Sparkle ring animation

2

98

7d

Detect & use mouse wheel movement/event to call a function?

5

2092

7d

request App Review causing strange crash

7

999

8d

SOLVED: SwiftUI generates a new UUID for my Structs

1

77

9d

Tried to use .alert without trailing closure and I am getting this Error

1

40

9d

Odd behaviour with SwiftData

2

64

9d

Setting the step property of a slider slows it WAAAYYYY down.

0

28

9d

SOLVED: SwiftData and iCloud showing ADDED records between devices correctly, but not showing EDITED records automatically

1

43

10d

UltimatePortfolio Project: Unable to initialize without a valid iCloud account

14

2265

10d

How can you tell if the attribute allowsCloudEncryption works?

0

28

11d

Create a two-column grid using ForEach with variable-length array

3

1579

11d

SOLVED: Returning the number of records in a SwiftData model back to a parent view after filtering/deleting/adding

1

99

12d

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

2

123

14d

Basic Navigation Stack - working but multiple errors

0

85

15d

Seamless joining between TextField and Button

10

523

16d

SOLVED: Correct use of SwiftData in a Picker

2

1064

16d

How do I refresh a view when the modelContext hasn't changed

0

55

17d

Monitoring Changes in an Array of @Observable Classes

1

156

18d

SOLVED: Any suggestions to get around the memory leak caused by multiple presentation detents on Sheet?

11

1874

19d

How do I use Swift Data with an App Extension Target (Device Activity Monitor )

0

67

19d

Charts last two x labels overlap

0

43

19d

Runtime error after adding CloudKit to SwiftData App

1

97

19d

Showing a View from a Model ??

1

87

20d

Drag Drop Table row using Transferable?

4

486

20d

SOLVED: Getting rid of two chevrons from navigation link

2

103

20d

How can I decode a json to populate a List?

4

165

21d

Wakanda 'TextField' has a 'label' closure? Why tho?

1

73

21d

Adding an invisible Cmd-Key shortcut to ContentView

1

96

22d

Multiple .environment() ?

1

135

23d

Lazy loading of dependent relationship in SwiftData

1

101

25d

'@State' used to 'keep property alive'?

2

195

25d

Speed of movement based on time

2

126

26d

Question about the updated version of the SwiftUI course

4

167

26d

SOLVED: Increasing Performance in SwiftData

2

166

27d

When using a .fileimporter all files greyed out (iOS)

0

61

28d

How to replace "New" document menu or implement a custom Open Recent menu?

4

219

28d

SOLVED: isPresented: on the basis of an observed object not being empty?

8

339

28d

SwiftData Filter by object and relationship?

0

70

29d

Error message at "Cannot find 'GrubbView(userId:)' in scope", how do I fix this?

4

716

Mar 26

How fix navigation stack opens view multiple times?

0

62

Mar 26

Help me figure it out MVVM + Coordinator.

1

230

Mar 26

SOLVED: Observation, @Observable & @Bindable ??

2

116

Mar 26

How to update a view on property change?

2

142

Mar 25

SOLVED: Changing @State to @Binding

6

296

Mar 25

Day 34 — I've got a solution. Is this how you do it?

0

61

Mar 25

SwiftUI repeatedly fires up an animation which ought to be initiated once by property manipulation from within .onAppear(perform:)

1

240

Mar 24

Cannot assign to property: 'user' is a get-only property

2

183

Mar 24

Getting the location in the View where the user (long) tapped/pressed

4

1897

Mar 23

Always display console on ipad Swift Playgrounds app

0

58

Mar 21

how to restore the app state?

1

109

Mar 21

objectWillChange - why not objectDidChange?

3

163

Mar 21

SOLVED: ChildView gets data via @Bindable model but doesn't refresh after updating properties of the model

5

217

Mar 20

Requesting FaceID remotely ?

0

73

Mar 20

SOLVED: Turn of notifications

2

105

Mar 20

Why use @ObservedObject over @EnvironmentObject

3

154

Mar 20

Upgrading from CoreData to SwiftData - what am I missing?

4

188

Mar 19

Problems using a View Model array

3

602

Mar 19

Published<String> To Binding<String> ?

6

448

Mar 19

SOLVED: Update state variable in multiple views

3

162

Mar 18

Menu buttons view difference on iOS and Mac (designed for iPad)

0

55

Mar 18

RoundedRectangle vs Capsule ?

4

201

Mar 17

selection: Set<Object.ID> but ID is inaccessible

0

65

Mar 17

TextField number treated as text

2

144

Mar 17

Share Sheet Extensions ?

2

137

Mar 17

Custom picker for an remote list items

0

73

Mar 17

passing a navigationPath and using #Predicate inside a custom initialiser causes navigation link to freeze app

2

117

Mar 17

Day 28 - Challenge - How do I trigger a function without a button?

4

675

Mar 17

SOLVED: How to set the colour of a section header

2

163

Mar 16

SOLVED: Is its SwiftData or is it Me?

3

207

Mar 15

SwiftData isStoredInMemoryOnly = false causes Preview crash

0

79

Mar 15

Saving files(PDF) in a SwiftUI application

1

165

Mar 14

.autocorrectionDisabled() not updating with @State variable

2

111

Mar 14

Disabling a button based on the state of two booleans

4

241

Mar 11

How to use both .draggable and .onTapGesture?

1

121

Mar 11

Not sure how to get a Bool value in a table to update when it changes

2

257

Mar 11

Can you create a swiftdata one-to-one relationship that shares the same data?

0

91

Mar 9

Adding color to SF Symbols in ternary expression...

6

230

Mar 8

SOLVED: @State vs @StateObject in Apple's SwiftUI Landmark Tutorial

2

137

Mar 8

SOLVED: Cannot display .sheet referencing a boolean

3

171

Mar 7

NEWB issue - Problems with Picker not functioning as expected...

2

133

Mar 7

SimplyCoreAudio - Werd behavior when Airpods Connected

2

179

Mar 5

Variable not getting updated

0

86

Mar 5

Sending game timer from one file to another

0

66

Mar 5

 
 

All interactions here are governed by our code of conduct.

TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and free gifts!

Find out more

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.