UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

Forums > SwiftUI

Help and discussion for SwiftUI.

  Title Replies Views Activity

About the SwiftUI forum

3

6989

May '20

SwiftUI generates a new UUID for my Structs

1

31

46m

Debugging Out of Memory Help

11

174

8h

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

1

14

8h

Odd behaviour with SwiftData

2

39

11h

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

0

8

12h

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

1

27

1d

UltimatePortfolio Project: Unable to initialize without a valid iCloud account

14

2195

1d

How can you tell if the attribute allowsCloudEncryption works?

0

14

2d

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

3

1505

2d

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

1

81

3d

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

2

90

5d

Basic Navigation Stack - working but multiple errors

0

60

6d

Seamless joining between TextField and Button

10

460

7d

SOLVED: Correct use of SwiftData in a Picker

2

950

7d

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

0

47

8d

Monitoring Changes in an Array of @Observable Classes

1

144

9d

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

11

1817

10d

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

0

45

10d

Charts last two x labels overlap

0

33

10d

Runtime error after adding CloudKit to SwiftData App

1

80

10d

Showing a View from a Model ??

1

73

11d

Drag Drop Table row using Transferable?

4

410

11d

SOLVED: Getting rid of two chevrons from navigation link

2

86

11d

How can I decode a json to populate a List?

4

140

12d

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

1

61

12d

Adding an invisible Cmd-Key shortcut to ContentView

1

68

13d

Multiple .environment() ?

1

120

14d

Lazy loading of dependent relationship in SwiftData

1

82

16d

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

2

181

16d

Speed of movement based on time

2

108

17d

Question about the updated version of the SwiftUI course

4

148

17d

SOLVED: Increasing Performance in SwiftData

2

131

18d

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

0

49

19d

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

4

161

19d

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

8

290

19d

SwiftData Filter by object and relationship?

0

55

20d

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

4

698

21d

How fix navigation stack opens view multiple times?

0

50

21d

Help me figure it out MVVM + Coordinator.

1

188

21d

SOLVED: Observation, @Observable & @Bindable ??

2

100

21d

How to update a view on property change?

2

113

22d

SOLVED: Changing @State to @Binding

6

247

22d

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

0

52

22d

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

1

228

22d

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

2

155

23d

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

4

1812

24d

Always display console on ipad Swift Playgrounds app

0

42

25d

how to restore the app state?

1

89

26d

objectWillChange - why not objectDidChange?

3

137

26d

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

5

178

26d

Requesting FaceID remotely ?

0

58

27d

SOLVED: Turn of notifications

2

87

27d

Why use @ObservedObject over @EnvironmentObject

3

132

27d

Upgrading from CoreData to SwiftData - what am I missing?

4

163

27d

Problems using a View Model array

3

570

28d

Published<String> To Binding<String> ?

6

355

28d

SOLVED: Update state variable in multiple views

3

131

28d

Menu buttons view difference on iOS and Mac (designed for iPad)

0

45

29d

RoundedRectangle vs Capsule ?

4

175

29d

selection: Set<Object.ID> but ID is inaccessible

0

52

29d

TextField number treated as text

2

126

29d

Share Sheet Extensions ?

2

115

29d

Custom picker for an remote list items

0

62

Mar 17

passing a navigationPath and using #Predicate inside a custom initialiser causes navigation link to freeze app

2

100

Mar 17

Day 28 - Challenge - How do I trigger a function without a button?

4

641

Mar 17

SOLVED: How to set the colour of a section header

2

151

Mar 16

SOLVED: Is its SwiftData or is it Me?

3

192

Mar 15

SwiftData isStoredInMemoryOnly = false causes Preview crash

0

68

Mar 15

Saving files(PDF) in a SwiftUI application

1

129

Mar 14

.autocorrectionDisabled() not updating with @State variable

2

97

Mar 14

Disabling a button based on the state of two booleans

4

205

Mar 11

How to use both .draggable and .onTapGesture?

1

95

Mar 11

Not sure how to get a Bool value in a table to update when it changes

2

224

Mar 11

Can you create a swiftdata one-to-one relationship that shares the same data?

0

76

Mar 9

Adding color to SF Symbols in ternary expression...

6

211

Mar 8

SOLVED: @State vs @StateObject in Apple's SwiftUI Landmark Tutorial

2

122

Mar 8

SOLVED: Cannot display .sheet referencing a boolean

3

136

Mar 7

NEWB issue - Problems with Picker not functioning as expected...

2

118

Mar 7

SimplyCoreAudio - Werd behavior when Airpods Connected

2

161

Mar 5

Variable not getting updated

0

75

Mar 5

Sending game timer from one file to another

0

58

Mar 5

SOLVED: Why is my view in a different position inside ContentView?

2

141

Mar 5

Why does using LazyHStack with ScrollView break .onTapGesture/.sheet in a child view?

6

402

Mar 5

Gesture: System gesture gate timed out.

4

2712

Mar 4

SOLVED: Sort by Date but not Time

2

138

Mar 4

How to use environment objects in Preview

3

354

Mar 3

The code in the article titled 'How to Add a Toolbar to the Keyboard' contains errors

2

345

Mar 2

Beginner Question

4

225

Mar 2

SOLVED: SwiftData context seperate from views

5

527

Mar 1

SOLVED: How do I get my View to update when my data changes

3

192

Mar 1

SOLVED: Missing mandatory text data for property '_identifier'

2

186

Mar 1

Scrolling and Animation Issues in iOS17/SwiftData

1

367

Mar 1

SOLVED: NavigationLink requires long press - need tap response

3

166

Mar 1

.onLongPressGesture on a ForEach List

0

62

Mar 1

Communication between windows in visionOS

0

73

Feb 27

Preview lock screen? 🙄

0

74

Feb 27

Is this type of relationship Model valid in SwiftData?

0

77

Feb 27

Preview Crashes

1

148

Feb 27

SOLVED: Logic checks linked to all instances, instead of checking independently

1

103

Feb 27

 
 

All interactions here are governed by our code of conduct.

Hacking with Swift is sponsored by Essential Developer

SPONSORED Join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer! Hurry up because it'll be available only until April 28th.

Click to save your free 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.