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

7065

May '20

Apple activity ring(sparkle effect)

2

37

6h

Progress View- What am I missing

5

58

21h

How does .asymmetric's insertion and removal works?

5

58

1d

SOLVED: Removal transition of rectangle is not working

2

47

2d

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

2

66

2d

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

2

43

2d

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

1

50

3d

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

2

38

3d

SOLVED: SwiftUI Map and Annotation has weird result

1

51

3d

Alternative to offsets

32

375

3d

Gesture: System gesture gate timed out.

6

3251

4d

SOLVED: Restore missing purchases

4

76

4d

SwiftUI Charts Y axis Scale

1

52

4d

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

0

31

6d

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

1

42

7d

SOLVED: Assistance Needed with Predicate Usage in SwiftData Initializer

1

64

7d

Basic Navigation Stack - working but multiple errors

1

176

8d

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

3

92

8d

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

1

60

8d

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

1

90

8d

SOLVED: ScrollView category title

5

373

9d

Keep the iOS keyboard visible while switching between TextFields

2

91

9d

SOLVED: Nil value where no nil value should be somehow

6

161

10d

SOLVED: SwiftData & CloudKit

1

88

10d

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

4

352

11d

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

9

245

12d

Button to bring up a new View in SwiftUI

2

99

12d

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

6

2199

13d

How to return mulitple views using return statement in SwiftUI?

5

124

13d

SOLVED: WEBVIEW DOES NOT SHOW CHANGES

3

94

14d

HOW TO READ DATA WITH FIRESTORE AND SWIFTUI

0

48

15d

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

42

624

15d

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

3

99

15d

Day 19: Challenge Day

1

76

15d

Apple App Store privacy policy generator ?

0

52

16d

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

0

59

16d

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

2

217

17d

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

0

44

17d

SwiftUI SwiftData mentor

0

54

17d

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

2

113

18d

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

1

71

18d

SOLVED: Debugging Out of Memory Help

14

509

20d

HOW TO GET RID OF DELAY IN WEBVIEW

0

67

21d

Sparkle ring animation

2

142

22d

request App Review causing strange crash

7

1091

23d

SOLVED: SwiftUI generates a new UUID for my Structs

1

123

24d

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

1

69

24d

Odd behaviour with SwiftData

2

89

24d

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

0

46

24d

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

1

73

25d

UltimatePortfolio Project: Unable to initialize without a valid iCloud account

14

2411

26d

How can you tell if the attribute allowsCloudEncryption works?

0

43

26d

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

3

1697

26d

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

1

146

27d

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

2

178

29d

Seamless joining between TextField and Button

10

608

Apr 9

SOLVED: Correct use of SwiftData in a Picker

2

1258

Apr 8

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

0

81

Apr 8

Monitoring Changes in an Array of @Observable Classes

1

203

Apr 6

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

11

2002

Apr 6

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

0

112

Apr 6

Charts last two x labels overlap

0

64

Apr 5

Runtime error after adding CloudKit to SwiftData App

1

145

Apr 5

Showing a View from a Model ??

1

108

Apr 5

Drag Drop Table row using Transferable?

4

612

Apr 5

SOLVED: Getting rid of two chevrons from navigation link

2

149

Apr 4

How can I decode a json to populate a List?

4

207

Apr 4

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

1

109

Apr 3

Adding an invisible Cmd-Key shortcut to ContentView

1

135

Apr 3

Multiple .environment() ?

1

170

Apr 2

Lazy loading of dependent relationship in SwiftData

1

136

Mar 31

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

2

226

Mar 30

Speed of movement based on time

2

155

Mar 30

Question about the updated version of the SwiftUI course

4

194

Mar 29

SOLVED: Increasing Performance in SwiftData

2

225

Mar 29

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

0

86

Mar 28

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

4

302

Mar 27

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

8

421

Mar 27

SwiftData Filter by object and relationship?

0

107

Mar 27

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

4

751

Mar 26

How fix navigation stack opens view multiple times?

0

91

Mar 26

Help me figure it out MVVM + Coordinator.

1

288

Mar 26

SOLVED: Observation, @Observable & @Bindable ??

2

151

Mar 26

How to update a view on property change?

2

182

Mar 25

SOLVED: Changing @State to @Binding

6

391

Mar 25

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

0

73

Mar 25

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

1

261

Mar 24

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

2

250

Mar 24

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

4

2002

Mar 23

Always display console on ipad Swift Playgrounds app

0

80

Mar 21

how to restore the app state?

1

134

Mar 21

objectWillChange - why not objectDidChange?

3

199

Mar 21

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

5

298

Mar 20

Requesting FaceID remotely ?

0

92

Mar 20

SOLVED: Turn of notifications

2

136

Mar 20

Why use @ObservedObject over @EnvironmentObject

3

179

Mar 20

Upgrading from CoreData to SwiftData - what am I missing?

4

228

Mar 19

Problems using a View Model array

3

650

Mar 19

Published<String> To Binding<String> ?

6

673

Mar 19

 
 

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.