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

SOLVED: Observation, @Observable & @Bindable ??

2

180

Mar 26

How to update a view on property change?

2

204

Mar 25

SOLVED: Changing @State to @Binding

6

465

Mar 25

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

0

81

Mar 25

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

1

269

Mar 24

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

2

293

Mar 24

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

4

2066

Mar 23

Always display console on ipad Swift Playgrounds app

0

95

Mar 21

how to restore the app state?

1

148

Mar 21

objectWillChange - why not objectDidChange?

3

213

Mar 21

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

5

342

Mar '24

Requesting FaceID remotely ?

0

102

Mar '24

SOLVED: Turn of notifications

2

147

Mar '24

Why use @ObservedObject over @EnvironmentObject

3

195

Mar '24

Upgrading from CoreData to SwiftData - what am I missing?

4

247

Mar '24

Problems using a View Model array

3

678

Mar '24

Published<String> To Binding<String> ?

6

835

Mar '24

SOLVED: Update state variable in multiple views

3

242

Mar '24

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

0

75

Mar '24

RoundedRectangle vs Capsule ?

4

269

Mar '24

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

0

95

Mar '24

TextField number treated as text

2

181

Mar '24

Share Sheet Extensions ?

2

174

Mar '24

Custom picker for an remote list items

0

112

Mar '24

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

2

197

Mar '24

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

4

772

Mar '24

SOLVED: How to set the colour of a section header

2

220

Mar '24

SOLVED: Is its SwiftData or is it Me?

3

285

Mar '24

SwiftData isStoredInMemoryOnly = false causes Preview crash

0

106

Mar '24

Saving files(PDF) in a SwiftUI application

1

254

Mar '24

.autocorrectionDisabled() not updating with @State variable

2

156

Mar '24

Disabling a button based on the state of two booleans

4

353

Mar '24

How to use both .draggable and .onTapGesture?

1

175

Mar '24

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

2

345

Mar '24

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

0

133

Mar '24

Adding color to SF Symbols in ternary expression...

6

282

Mar '24

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

2

187

Mar '24

SOLVED: Cannot display .sheet referencing a boolean

3

269

Mar '24

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

2

181

Mar '24

SimplyCoreAudio - Werd behavior when Airpods Connected

2

237

Mar '24

Variable not getting updated

0

107

Mar '24

Sending game timer from one file to another

0

90

Mar '24

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

2

230

Mar '24

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

6

591

Mar '24

SOLVED: Sort by Date but not Time

2

227

Mar '24

How to use environment objects in Preview

3

595

Mar '24

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

2

556

Mar '24

Beginner Question

4

292

Mar '24

SOLVED: SwiftData context seperate from views

5

1124

Mar '24

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

3

253

Mar '24

SOLVED: Missing mandatory text data for property '_identifier'

2

299

Mar '24

Scrolling and Animation Issues in iOS17/SwiftData

1

533

Mar '24

SOLVED: NavigationLink requires long press - need tap response

3

265

Mar '24

.onLongPressGesture on a ForEach List

0

103

Mar '24

Communication between windows in visionOS

0

114

Feb '24

Preview lock screen? 🙄

0

111

Feb '24

Is this type of relationship Model valid in SwiftData?

0

94

Feb '24

Preview Crashes

1

217

Feb '24

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

1

138

Feb '24

How do I change the colour of the a list selection bar - MacOS

2

445

Feb '24

How make to disable a Pods in SwiftLint?

0

110

Feb '24

Looking for a mentor

0

102

Feb '24

Timers and playing sound app

0

235

Feb '24

Animating size with GeometryReader

0

165

Feb '24

How to fade out element of array?

1

211

Feb '24

Sorting Nested Array in SwiftData

0

221

Feb '24

xCode 15 Preview(s)

1

312

Feb '24

Lost in GridView

1

194

Feb '24

SOLVED: Keeping track of nesting depth in views

1

152

Feb '24

Intermittent SwiftUI Redraw Issue when inserting/removing elements from array. (Reproducible in project17)

1

239

Feb '24

Trying to use deeplink URL to launch app

0

222

Feb '24

SOLVED: Odd annotation being displayed on a chart

3

259

Feb '24

SOLVED: View not refreshing on State change

7

718

Feb '24

SOLVED: .inspector initial width

2

316

Feb '24

SwiftUI: DragGesture Issue Between Parent and Child Views in SwiftUI

1

223

Feb '24

Help with how to construct complex form in SwiftUI

6

561

Feb '24

an swiftData update issue

2

290

Feb '24

Using different locale in Preview

0

171

Feb '24

SOLVED: MultiSelect doesn't working

3

270

Feb '24

Using MultiPolygons with Map

0

91

Feb '24

Using @Observable and getting a "Accessing State's value outside of being installed..." error.

7

1149

Feb '24

Recursion in a Table

1

256

Feb '24

How to use #Preview

1

170

Feb '24

How do I get my UIImage that I receive from a custom Camera/Photo Picker stored in SwiftData?

1

415

Feb '24

Challenge 1 Problem with Selecting Different Measurement Styles

0

104

Feb '24

LazyVGrid crash on specific column width

0

161

Feb '24

SwiftData objects and Multiple Selection in Lists

4

924

Feb '24

Using AppStorage to update other Views

3

510

Feb '24

Dynamically Resizing an Array for Room Descriptions in a SwiftUI Form

0

119

Feb '24

Can anyone help me conceptually understand how to work with NavigationStack across files/views?

9

980

Feb '24

Struggling with SwiftData Migration

1

462

Feb '24

SwiftData `isStoredInMemoryOnly: true` not working on macOS + iCloud?

3

441

Feb '24

Re-using a WkWebView in multiple SwiftUI views

0

203

Feb '24

How do I animate out a view based on an StateObject change (animating in fine)??

1

177

Feb '24

How to fix lag occurring while transitioning images?

2

224

Feb '24

RealityKit Materials: Basic Gradient

0

212

Feb '24

How to add LazyVGrid row seperators?

0

306

Feb '24

Window position MacOS

6

1095

Feb '24

SOLVED: Using CloudKit with home grown database - can it be done?

2

279

Feb '24

What font / color is used for section headers?

5

2492

Feb '24

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.