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

WEBVIEW DOES NOT SHOW CHANGES

0

14

6h

HOW TO READ DATA WITH FIRESTORE AND SWIFTUI

0

12

7h

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

42

339

7h

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

3

49

18h

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

2

53

23h

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

0

10

1d

Day 19: Challenge Day

1

33

1d

Apple App Store privacy policy generator ?

0

16

1d

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

0

29

1d

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

2

161

2d

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

0

23

2d

SwiftUI SwiftData mentor

0

29

2d

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

2

54

3d

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

1

45

3d

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

2

228

5d

SOLVED: Debugging Out of Memory Help

14

316

5d

HOW TO GET RID OF DELAY IN WEBVIEW

0

40

6d

Sparkle ring animation

2

99

7d

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

5

2095

8d

request App Review causing strange crash

7

1001

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

41

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

2266

11d

How can you tell if the attribute allowsCloudEncryption works?

0

28

11d

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

3

1585

11d

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

1

101

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

16d

Seamless joining between TextField and Button

10

524

16d

SOLVED: Correct use of SwiftData in a Picker

2

1068

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

68

19d

Charts last two x labels overlap

0

43

20d

Runtime error after adding CloudKit to SwiftData App

1

97

20d

Showing a View from a Model ??

1

87

20d

Drag Drop Table row using Transferable?

4

487

20d

SOLVED: Getting rid of two chevrons from navigation link

2

103

21d

How can I decode a json to populate a List?

4

165

21d

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

1

74

22d

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

26d

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

167

27d

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

0

62

28d

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

4

219

29d

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

8

339

29d

SwiftData Filter by object and relationship?

0

70

29d

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

4

718

Mar 26

How fix navigation stack opens view multiple times?

0

63

Mar 26

Help me figure it out MVVM + Coordinator.

1

231

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

301

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

185

Mar 24

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

4

1898

Mar 23

Always display console on ipad Swift Playgrounds app

0

59

Mar 21

how to restore the app state?

1

109

Mar 21

objectWillChange - why not objectDidChange?

3

165

Mar 21

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

5

218

Mar 20

Requesting FaceID remotely ?

0

73

Mar 20

SOLVED: Turn of notifications

2

106

Mar 20

Why use @ObservedObject over @EnvironmentObject

3

154

Mar 20

Upgrading from CoreData to SwiftData - what am I missing?

4

189

Mar 19

Problems using a View Model array

3

603

Mar 19

Published<String> To Binding<String> ?

6

451

Mar 19

SOLVED: Update state variable in multiple views

3

164

Mar 18

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

0

55

Mar 18

RoundedRectangle vs Capsule ?

4

202

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

138

Mar 17

Custom picker for an remote list items

0

74

Mar 17

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

2

119

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

166

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

123

Mar 11

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

2

258

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

138

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

 
 

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.