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

7084

May '20

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

1

74

3h

SOLVED: SwitData and NSEntityDescription error

1

29

18h

How to fix this weird animation issue

2

36

22h

Font recommendation

3

55

1d

How can I unzip a file

1

32

1d

Picker from the toolbar in watchOS

0

20

1d

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

6

63

1d

Share Bug: First share attempt shows a blank sheet.

0

21

2d

SOLVED: Preview crashes when trying to display SwiftData model

1

38

2d

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

2

144

4d

Conditional logic for submitLabel ?

2

49

4d

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

3

98

5d

SwiftData Relationship woes

0

27

5d

.onChange does not trigger after pairing

0

28

6d

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

6

3255

6d

SOLVED: Picker won't update

1

42

6d

NavigationStackView DetailView not reseting States and StateObjects when changing selection

0

44

8d

Should I create a ModelContext or use the container.mainContext

0

35

8d

Apple activity ring(sparkle effect)

2

89

9d

Progress View- What am I missing

5

111

10d

How does .asymmetric's insertion and removal works?

5

101

10d

SOLVED: Removal transition of rectangle is not working

2

91

11d

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

2

104

11d

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

2

63

11d

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

1

76

12d

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

2

56

12d

SOLVED: SwiftUI Map and Annotation has weird result

1

67

12d

SOLVED: Alternative to offsets

32

506

12d

Gesture: System gesture gate timed out.

6

3473

13d

SOLVED: Restore missing purchases

4

102

13d

SwiftUI Charts Y axis Scale

1

89

14d

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

0

40

15d

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

1

53

16d

SOLVED: Assistance Needed with Predicate Usage in SwiftData Initializer

1

79

16d

Basic Navigation Stack - working but multiple errors

1

230

17d

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

3

118

17d

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

1

88

18d

SOLVED: ScrollView category title

5

401

18d

Keep the iOS keyboard visible while switching between TextFields

2

121

18d

SOLVED: Nil value where no nil value should be somehow

6

204

19d

SOLVED: SwiftData & CloudKit

1

125

19d

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

4

397

20d

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

9

306

21d

Button to bring up a new View in SwiftUI

2

127

22d

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

6

2247

22d

How to return mulitple views using return statement in SwiftUI?

5

141

22d

SOLVED: WEBVIEW DOES NOT SHOW CHANGES

3

124

23d

HOW TO READ DATA WITH FIRESTORE AND SWIFTUI

0

57

24d

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

42

729

24d

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

3

115

24d

Day 19: Challenge Day

1

87

25d

Apple App Store privacy policy generator ?

0

64

25d

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

0

65

25d

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

2

237

26d

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

0

52

26d

SwiftUI SwiftData mentor

0

61

26d

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

2

139

27d

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

1

91

27d

SOLVED: Debugging Out of Memory Help

14

591

29d

HOW TO GET RID OF DELAY IN WEBVIEW

0

75

Apr 19

Sparkle ring animation

2

188

Apr 18

request App Review causing strange crash

7

1136

Apr 16

SOLVED: SwiftUI generates a new UUID for my Structs

1

135

Apr 16

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

1

79

Apr 16

Odd behaviour with SwiftData

2

106

Apr 16

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

0

53

Apr 16

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

1

87

Apr 14

UltimatePortfolio Project: Unable to initialize without a valid iCloud account

14

2512

Apr 14

How can you tell if the attribute allowsCloudEncryption works?

0

52

Apr 14

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

3

1765

Apr 14

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

1

180

Apr 13

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

2

200

Apr 10

Seamless joining between TextField and Button

10

656

Apr 9

SOLVED: Correct use of SwiftData in a Picker

2

1356

Apr 8

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

0

91

Apr 8

Monitoring Changes in an Array of @Observable Classes

1

230

Apr 6

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

11

2070

Apr 6

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

0

148

Apr 6

Charts last two x labels overlap

0

75

Apr 5

Runtime error after adding CloudKit to SwiftData App

1

173

Apr 5

Showing a View from a Model ??

1

115

Apr 5

Drag Drop Table row using Transferable?

4

677

Apr 5

SOLVED: Getting rid of two chevrons from navigation link

2

162

Apr 4

How can I decode a json to populate a List?

4

224

Apr 4

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

1

123

Apr 3

Adding an invisible Cmd-Key shortcut to ContentView

1

164

Apr 3

Multiple .environment() ?

1

181

Apr 2

Lazy loading of dependent relationship in SwiftData

1

153

Mar 31

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

2

248

Mar 30

Speed of movement based on time

2

175

Mar 30

Question about the updated version of the SwiftUI course

4

221

Mar 29

SOLVED: Increasing Performance in SwiftData

2

256

Mar 29

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

0

96

Mar 28

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

4

344

Mar 27

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

8

510

Mar 27

SwiftData Filter by object and relationship?

0

117

Mar 27

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

4

771

Mar 26

How fix navigation stack opens view multiple times?

0

100

Mar 26

Help me figure it out MVVM + Coordinator.

1

330

Mar 26

 
 

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.