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

7069

May '20

SwiftData Relationship woes

0

7

3h

Font recommendation

0

10

8h

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

0

13

9h

.onChange does not trigger after pairing

0

12

11h

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

6

3200

12h

SOLVED: Picker won't update

1

24

16h

NavigationStackView DetailView not reseting States and StateObjects when changing selection

0

35

2d

Should I create a ModelContext or use the container.mainContext

0

24

3d

Apple activity ring(sparkle effect)

2

72

3d

Progress View- What am I missing

5

79

4d

How does .asymmetric's insertion and removal works?

5

77

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

83

5d

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

2

48

6d

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

1

60

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

7d

SOLVED: Alternative to offsets

32

412

7d

Gesture: System gesture gate timed out.

6

3324

7d

SOLVED: Restore missing purchases

4

82

7d

SwiftUI Charts Y axis Scale

1

64

8d

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

0

33

9d

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

1

47

10d

SOLVED: Assistance Needed with Predicate Usage in SwiftData Initializer

1

69

10d

Basic Navigation Stack - working but multiple errors

1

194

11d

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

3

101

11d

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

1

75

12d

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

1

96

12d

SOLVED: ScrollView category title

5

377

12d

Keep the iOS keyboard visible while switching between TextFields

2

98

13d

SOLVED: Nil value where no nil value should be somehow

6

178

13d

SOLVED: SwiftData & CloudKit

1

103

13d

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

4

365

14d

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

9

265

15d

Button to bring up a new View in SwiftUI

2

115

16d

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

6

2215

16d

How to return mulitple views using return statement in SwiftUI?

5

129

16d

SOLVED: WEBVIEW DOES NOT SHOW CHANGES

3

109

18d

HOW TO READ DATA WITH FIRESTORE AND SWIFTUI

0

53

18d

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

42

631

18d

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

3

108

19d

Day 19: Challenge Day

1

82

19d

Apple App Store privacy policy generator ?

0

58

19d

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

0

62

19d

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

2

224

20d

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

0

46

21d

SwiftUI SwiftData mentor

0

56

21d

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

2

117

22d

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

1

75

22d

SOLVED: Debugging Out of Memory Help

14

538

23d

HOW TO GET RID OF DELAY IN WEBVIEW

0

67

24d

Sparkle ring animation

2

168

26d

request App Review causing strange crash

7

1101

27d

SOLVED: SwiftUI generates a new UUID for my Structs

1

125

27d

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

1

71

28d

Odd behaviour with SwiftData

2

95

28d

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

0

46

28d

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

1

77

29d

UltimatePortfolio Project: Unable to initialize without a valid iCloud account

14

2433

29d

How can you tell if the attribute allowsCloudEncryption works?

0

46

Apr 14

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

3

1722

Apr 14

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

1

152

Apr 13

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

2

185

Apr 10

Seamless joining between TextField and Button

10

620

Apr 9

SOLVED: Correct use of SwiftData in a Picker

2

1298

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

213

Apr 6

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

11

2017

Apr 6

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

0

125

Apr 6

Charts last two x labels overlap

0

67

Apr 5

Runtime error after adding CloudKit to SwiftData App

1

152

Apr 5

Showing a View from a Model ??

1

111

Apr 5

Drag Drop Table row using Transferable?

4

636

Apr 5

SOLVED: Getting rid of two chevrons from navigation link

2

151

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

112

Apr 3

Adding an invisible Cmd-Key shortcut to ContentView

1

146

Apr 3

Multiple .environment() ?

1

175

Apr 2

Lazy loading of dependent relationship in SwiftData

1

142

Mar 31

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

2

237

Mar 30

Speed of movement based on time

2

164

Mar 30

Question about the updated version of the SwiftUI course

4

208

Mar 29

SOLVED: Increasing Performance in SwiftData

2

236

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

313

Mar 27

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

8

466

Mar 27

SwiftData Filter by object and relationship?

0

111

Mar 27

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

4

753

Mar 26

How fix navigation stack opens view multiple times?

0

91

Mar 26

Help me figure it out MVVM + Coordinator.

1

305

Mar 26

SOLVED: Observation, @Observable & @Bindable ??

2

161

Mar 26

How to update a view on property change?

2

186

Mar 25

SOLVED: Changing @State to @Binding

6

417

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

264

Mar 24

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

2

260

Mar 24

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

4

2022

Mar 23

Always display console on ipad Swift Playgrounds app

0

86

Mar 21

how to restore the app state?

1

140

Mar 21

 
 

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.