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

7067

May '20

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

6

3185

27m

SOLVED: Picker won't update

1

18

3h

NavigationStackView DetailView not reseting States and StateObjects when changing selection

0

34

2d

Firebase Messaging Push Notifications in SwiftUI

2

32

2d

Should I create a ModelContext or use the container.mainContext

0

24

2d

Apple activity ring(sparkle effect)

2

68

3d

Progress View- What am I missing

5

79

3d

How does .asymmetric's insertion and removal works?

5

75

4d

SOLVED: Removal transition of rectangle is not working

2

65

5d

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

2

82

5d

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

2

48

5d

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

1

58

6d

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

2

43

6d

SOLVED: SwiftUI Map and Annotation has weird result

1

55

6d

SOLVED: Alternative to offsets

32

412

6d

Gesture: System gesture gate timed out.

6

3317

7d

SOLVED: Restore missing purchases

4

82

7d

SwiftUI Charts Y axis Scale

1

63

7d

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

0

33

9d

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

1

45

10d

SOLVED: Assistance Needed with Predicate Usage in SwiftData Initializer

1

68

10d

Basic Navigation Stack - working but multiple errors

1

194

11d

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

3

100

11d

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

1

73

11d

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

1

94

11d

SOLVED: ScrollView category title

5

376

12d

Keep the iOS keyboard visible while switching between TextFields

2

98

12d

SOLVED: Nil value where no nil value should be somehow

6

176

13d

SOLVED: SwiftData & CloudKit

1

100

13d

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

4

364

14d

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

9

260

15d

Button to bring up a new View in SwiftUI

2

112

15d

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

6

2212

16d

How to return mulitple views using return statement in SwiftUI?

5

128

16d

SOLVED: WEBVIEW DOES NOT SHOW CHANGES

3

104

17d

HOW TO READ DATA WITH FIRESTORE AND SWIFTUI

0

51

18d

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

42

629

18d

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

3

105

18d

Day 19: Challenge Day

1

81

18d

Apple App Store privacy policy generator ?

0

58

19d

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

0

61

19d

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

2

223

20d

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

0

45

20d

SwiftUI SwiftData mentor

0

56

20d

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

2

116

21d

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

1

75

21d

SOLVED: Debugging Out of Memory Help

14

529

23d

HOW TO GET RID OF DELAY IN WEBVIEW

0

67

24d

Sparkle ring animation

2

167

25d

request App Review causing strange crash

7

1099

26d

SOLVED: SwiftUI generates a new UUID for my Structs

1

124

27d

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

1

71

27d

Odd behaviour with SwiftData

2

93

27d

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

0

46

27d

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

1

77

28d

UltimatePortfolio Project: Unable to initialize without a valid iCloud account

14

2429

29d

How can you tell if the attribute allowsCloudEncryption works?

0

43

29d

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

3

1714

29d

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

1

151

Apr 13

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

2

184

Apr 10

Seamless joining between TextField and Button

10

617

Apr 9

SOLVED: Correct use of SwiftData in a Picker

2

1292

Apr 8

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

0

84

Apr 8

Monitoring Changes in an Array of @Observable Classes

1

211

Apr 6

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

11

2016

Apr 6

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

0

123

Apr 6

Charts last two x labels overlap

0

67

Apr 5

Runtime error after adding CloudKit to SwiftData App

1

150

Apr 5

Showing a View from a Model ??

1

111

Apr 5

Drag Drop Table row using Transferable?

4

632

Apr 5

SOLVED: Getting rid of two chevrons from navigation link

2

150

Apr 4

How can I decode a json to populate a List?

4

211

Apr 4

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

1

111

Apr 3

Adding an invisible Cmd-Key shortcut to ContentView

1

145

Apr 3

Multiple .environment() ?

1

174

Apr 2

Lazy loading of dependent relationship in SwiftData

1

142

Mar 31

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

2

233

Mar 30

Speed of movement based on time

2

161

Mar 30

Question about the updated version of the SwiftUI course

4

205

Mar 29

SOLVED: Increasing Performance in SwiftData

2

235

Mar 29

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

0

87

Mar 28

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

4

312

Mar 27

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

8

465

Mar 27

SwiftData Filter by object and relationship?

0

110

Mar 27

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

4

752

Mar 26

How fix navigation stack opens view multiple times?

0

91

Mar 26

Help me figure it out MVVM + Coordinator.

1

299

Mar 26

SOLVED: Observation, @Observable & @Bindable ??

2

156

Mar 26

How to update a view on property change?

2

185

Mar 25

SOLVED: Changing @State to @Binding

6

416

Mar 25

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

0

77

Mar 25

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

1

263

Mar 24

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

2

259

Mar 24

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

4

2021

Mar 23

Always display console on ipad Swift Playgrounds app

0

85

Mar 21

how to restore the app state?

1

137

Mar 21

objectWillChange - why not objectDidChange?

3

202

Mar 21

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

5

306

Mar 20

Requesting FaceID remotely ?

0

92

Mar 20

 
 

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.