TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>

Forums > SwiftUI

Help and discussion for SwiftUI.

  Title Replies Views Activity

About the SwiftUI forum

3

7053

May '20

Removal transition of rectangle is not working

1

19

35m

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

1

18

49m

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

2

25

5h

Refresh and Go back function for Webkit's Webview in SwiftUI

1

26

14h

Non-constant range: not an integer range while enumerating an array of arrays... why?

2

22

16h

SOLVED: SwiftUI Map and Annotation has weird result

1

34

1d

Alternative to offsets

32

283

1d

Gesture: System gesture gate timed out.

6

3172

1d

SOLVED: Restore missing purchases

4

64

1d

SwiftUI Charts Y axis Scale

1

37

2d

UITesting ShareLink: tap() clearly moving index inside app.images list.

0

25

3d

UITesting Lists: How to set accessibilityIdentifier for onDelete swipe button?

1

36

4d

SOLVED: Assistance Needed with Predicate Usage in SwiftData Initializer

1

60

4d

Basic Navigation Stack - working but multiple errors

1

151

5d

SOLVED: I don't understand this .animation modifier.

3

79

5d

SOLVED: NavigationLinks to "Details" page do not work after data changes

1

45

6d

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

1

69

6d

SOLVED: ScrollView category title

5

364

6d

Using SwiftUI and SwiftData, how do I automatically check off an item based on something being in the model?

0

37

6d

Keep the iOS keyboard visible while switching between TextFields

2

74

7d

SOLVED: Nil value where no nil value should be somehow

6

146

7d

SOLVED: SwiftData & CloudKit

1

76

7d

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

4

335

8d

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

9

214

9d

Button to bring up a new View in SwiftUI

2

88

10d

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

6

2186

10d

How to return mulitple views using return statement in SwiftUI?

5

115

10d

SOLVED: WEBVIEW DOES NOT SHOW CHANGES

3

81

11d

HOW TO READ DATA WITH FIRESTORE AND SWIFTUI

0

43

12d

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

42

571

12d

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

3

86

13d

Day 19: Challenge Day

1

66

13d

Apple App Store privacy policy generator ?

0

40

13d

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

0

54

13d

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

2

209

14d

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

0

39

15d

SwiftUI SwiftData mentor

0

49

15d

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

2

107

16d

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

1

68

16d

SOLVED: Debugging Out of Memory Help

14

465

17d

HOW TO GET RID OF DELAY IN WEBVIEW

0

60

18d

Sparkle ring animation

2

131

20d

request App Review causing strange crash

7

1066

21d

SOLVED: SwiftUI generates a new UUID for my Structs

1

110

21d

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

1

64

22d

Odd behaviour with SwiftData

2

84

22d

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

0

39

22d

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

1

67

23d

UltimatePortfolio Project: Unable to initialize without a valid iCloud account

14

2384

23d

How can you tell if the attribute allowsCloudEncryption works?

0

40

24d

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

3

1673

24d

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

1

134

24d

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

2

167

27d

Seamless joining between TextField and Button

10

593

28d

SOLVED: Correct use of SwiftData in a Picker

2

1231

29d

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

0

75

29d

Monitoring Changes in an Array of @Observable Classes

1

193

Apr 6

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

11

1972

Apr 6

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

0

104

Apr 6

Charts last two x labels overlap

0

61

Apr 5

Runtime error after adding CloudKit to SwiftData App

1

135

Apr 5

Showing a View from a Model ??

1

101

Apr 5

Drag Drop Table row using Transferable?

4

590

Apr 5

SOLVED: Getting rid of two chevrons from navigation link

2

134

Apr 4

How can I decode a json to populate a List?

4

198

Apr 4

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

1

101

Apr 3

Adding an invisible Cmd-Key shortcut to ContentView

1

126

Apr 3

Multiple .environment() ?

1

162

Apr 2

Lazy loading of dependent relationship in SwiftData

1

125

Mar 31

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

2

219

Mar 30

Speed of movement based on time

2

147

Mar 30

Question about the updated version of the SwiftUI course

4

185

Mar 29

SOLVED: Increasing Performance in SwiftData

2

211

Mar 29

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

0

80

Mar 28

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

4

285

Mar 27

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

8

403

Mar 27

SwiftData Filter by object and relationship?

0

97

Mar 27

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

4

744

Mar 26

How fix navigation stack opens view multiple times?

0

81

Mar 26

Help me figure it out MVVM + Coordinator.

1

277

Mar 26

SOLVED: Observation, @Observable & @Bindable ??

2

142

Mar 26

How to update a view on property change?

2

172

Mar 25

SOLVED: Changing @State to @Binding

6

369

Mar 25

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

0

70

Mar 25

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

1

256

Mar 24

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

2

235

Mar 24

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

4

1977

Mar 23

Always display console on ipad Swift Playgrounds app

0

75

Mar 21

how to restore the app state?

1

130

Mar 21

objectWillChange - why not objectDidChange?

3

196

Mar 21

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

5

287

Mar 20

Requesting FaceID remotely ?

0

86

Mar 20

SOLVED: Turn of notifications

2

129

Mar 20

Why use @ObservedObject over @EnvironmentObject

3

176

Mar 20

Upgrading from CoreData to SwiftData - what am I missing?

4

219

Mar 19

Problems using a View Model array

3

644

Mar 19

Published<String> To Binding<String> ?

6

603

Mar 19

SOLVED: Update state variable in multiple views

3

203

Mar 18

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

0

66

Mar 18

 
 

All interactions here are governed by our code of conduct.

Hacking with Swift is sponsored by Blaze.

SPONSORED Still waiting on your CI build? Speed it up ~3x with Blaze - change one line, pay less, keep your existing GitHub workflows. First 25 HWS readers to use code HACKING at checkout get 50% off the first year. Try it now for free!

Reserve your 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.