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

7078

May '20

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

6

38

1h

SwitData and NSEntityDescription error

0

5

6h

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

1

42

11h

Share Bug: First share attempt shows a blank sheet.

0

13

17h

SOLVED: Preview crashes when trying to display SwiftData model

1

36

21h

Font recommendation

2

43

2d

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

2

129

2d

Conditional logic for submitLabel ?

2

44

2d

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

3

91

3d

SwiftData Relationship woes

0

25

4d

.onChange does not trigger after pairing

0

28

4d

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

6

3242

4d

SOLVED: Picker won't update

1

40

4d

NavigationStackView DetailView not reseting States and StateObjects when changing selection

0

43

6d

Should I create a ModelContext or use the container.mainContext

0

31

7d

Apple activity ring(sparkle effect)

2

88

7d

Progress View- What am I missing

5

102

8d

How does .asymmetric's insertion and removal works?

5

94

8d

SOLVED: Removal transition of rectangle is not working

2

81

9d

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

2

95

9d

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

2

60

10d

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

1

69

10d

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

2

52

10d

SOLVED: SwiftUI Map and Annotation has weird result

1

63

11d

SOLVED: Alternative to offsets

32

453

11d

Gesture: System gesture gate timed out.

6

3442

11d

SOLVED: Restore missing purchases

4

94

11d

SwiftUI Charts Y axis Scale

1

82

12d

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

0

36

13d

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

1

51

14d

SOLVED: Assistance Needed with Predicate Usage in SwiftData Initializer

1

75

14d

Basic Navigation Stack - working but multiple errors

1

218

15d

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

3

112

16d

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

1

84

16d

SOLVED: ScrollView category title

5

392

16d

Keep the iOS keyboard visible while switching between TextFields

2

113

17d

SOLVED: Nil value where no nil value should be somehow

6

192

17d

SOLVED: SwiftData & CloudKit

1

120

17d

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

4

388

18d

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

9

285

19d

Button to bring up a new View in SwiftUI

2

122

20d

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

6

2238

20d

How to return mulitple views using return statement in SwiftUI?

5

139

20d

SOLVED: WEBVIEW DOES NOT SHOW CHANGES

3

120

22d

HOW TO READ DATA WITH FIRESTORE AND SWIFTUI

0

56

22d

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

42

709

22d

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

3

110

23d

Day 19: Challenge Day

1

85

23d

Apple App Store privacy policy generator ?

0

64

23d

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

0

64

23d

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

2

233

24d

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

0

50

25d

SwiftUI SwiftData mentor

0

60

25d

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

2

132

26d

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

1

86

26d

SOLVED: Debugging Out of Memory Help

14

572

27d

HOW TO GET RID OF DELAY IN WEBVIEW

0

73

28d

Sparkle ring animation

2

184

Apr 18

request App Review causing strange crash

7

1121

Apr 16

SOLVED: SwiftUI generates a new UUID for my Structs

1

132

Apr 16

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

1

77

Apr 16

Odd behaviour with SwiftData

2

102

Apr 16

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

0

52

Apr 16

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

1

84

Apr 14

UltimatePortfolio Project: Unable to initialize without a valid iCloud account

14

2489

Apr 14

How can you tell if the attribute allowsCloudEncryption works?

0

51

Apr 14

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

3

1759

Apr 14

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

1

174

Apr 13

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

2

193

Apr 10

Seamless joining between TextField and Button

10

646

Apr 9

SOLVED: Correct use of SwiftData in a Picker

2

1344

Apr 8

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

0

88

Apr 8

Monitoring Changes in an Array of @Observable Classes

1

225

Apr 6

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

11

2054

Apr 6

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

0

142

Apr 6

Charts last two x labels overlap

0

72

Apr 5

Runtime error after adding CloudKit to SwiftData App

1

164

Apr 5

Showing a View from a Model ??

1

113

Apr 5

Drag Drop Table row using Transferable?

4

670

Apr 5

SOLVED: Getting rid of two chevrons from navigation link

2

158

Apr 4

How can I decode a json to populate a List?

4

220

Apr 4

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

1

121

Apr 3

Adding an invisible Cmd-Key shortcut to ContentView

1

159

Apr 3

Multiple .environment() ?

1

178

Apr 2

Lazy loading of dependent relationship in SwiftData

1

150

Mar 31

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

2

246

Mar 30

Speed of movement based on time

2

172

Mar 30

Question about the updated version of the SwiftUI course

4

216

Mar 29

SOLVED: Increasing Performance in SwiftData

2

250

Mar 29

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

0

95

Mar 28

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

4

336

Mar 27

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

8

490

Mar 27

SwiftData Filter by object and relationship?

0

115

Mar 27

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

4

766

Mar 26

How fix navigation stack opens view multiple times?

0

98

Mar 26

Help me figure it out MVVM + Coordinator.

1

322

Mar 26

SOLVED: Observation, @Observable & @Bindable ??

2

178

Mar 26

How to update a view on property change?

2

200

Mar 25

SOLVED: Changing @State to @Binding

6

454

Mar 25

 
 

All interactions here are governed by our code of conduct.

Hacking with Swift is sponsored by String Catalog.

SPONSORED Get accurate app localizations in minutes using AI. Choose your languages & receive translations for 40+ markets!

Localize My App

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.