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

Forums > SwiftUI

Help and discussion for SwiftUI.

  Title Replies Views Activity

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

6

442

Mar 5

Gesture: System gesture gate timed out.

4

2892

Mar 4

SOLVED: Sort by Date but not Time

2

169

Mar 4

How to use environment objects in Preview

3

417

Mar 3

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

2

393

Mar 2

Beginner Question

4

246

Mar 2

SOLVED: SwiftData context seperate from views

5

657

Mar 1

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

3

205

Mar 1

SOLVED: Missing mandatory text data for property '_identifier'

2

215

Mar 1

Scrolling and Animation Issues in iOS17/SwiftData

1

408

Mar 1

SOLVED: NavigationLink requires long press - need tap response

3

198

Mar 1

.onLongPressGesture on a ForEach List

0

74

Mar 1

Communication between windows in visionOS

0

86

Feb 27

Preview lock screen? ๐Ÿ™„

0

84

Feb 27

Is this type of relationship Model valid in SwiftData?

0

80

Feb 27

Preview Crashes

1

169

Feb 27

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

1

113

Feb 27

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

2

276

Feb 27

How make to disable a Pods in SwiftLint?

0

79

Feb 27

Looking for a mentor

0

80

Feb 26

Timers and playing sound app

0

156

Feb 26

Animating size with GeometryReader

0

118

Feb 25

How to fade out element of array?

1

145

Feb 25

SOLVED: ScrollView category title

5

314

Feb 25

Sorting Nested Array in SwiftData

0

160

Feb '24

xCode 15 Preview(s)

1

230

Feb '24

Lost in GridView

1

148

Feb '24

SOLVED: Keeping track of nesting depth in views

1

118

Feb '24

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

1

188

Feb '24

Trying to use deeplink URL to launch app

0

169

Feb '24

SOLVED: Odd annotation being displayed on a chart

3

198

Feb '24

SOLVED: View not refreshing on State change

7

487

Feb '24

SOLVED: .inspector initial width

2

238

Feb '24

SwiftUI: DragGesture Issue Between Parent and Child Views in SwiftUI

1

179

Feb '24

Help with how to construct complex form in SwiftUI

6

476

Feb '24

an swiftData update issue

2

227

Feb '24

Using different locale in Preview

0

109

Feb '24

SOLVED: MultiSelect doesn't working

3

203

Feb '24

Using MultiPolygons with Map

0

69

Feb '24

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

7

758

Feb '24

Recursion in a Table

1

197

Feb '24

How to use #Preview

1

138

Feb '24

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

1

312

Feb '24

Challenge 1 Problem with Selecting Different Measurement Styles

0

94

Feb '24

LazyVGrid crash on specific column width

0

116

Feb '24

SwiftData objects and Multiple Selection in Lists

4

673

Feb '24

Using AppStorage to update other Views

3

373

Feb '24

Dynamically Resizing an Array for Room Descriptions in a SwiftUI Form

0

104

Feb '24

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

9

711

Feb '24

Struggling with SwiftData Migration

1

378

Feb '24

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

3

360

Feb '24

Re-using a WkWebView in multiple SwiftUI views

0

172

Feb '24

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

1

143

Feb '24

How to fix lag occurring while transitioning images?

2

186

Feb '24

RealityKit Materials: Basic Gradient

0

167

Feb '24

How to add LazyVGrid row seperators?

0

231

Feb '24

Window position MacOS

6

828

Feb '24

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

2

232

Feb '24

What font / color is used for section headers?

5

2300

Feb '24

Identify what OS the app is running on

1

207

Feb '24

navigationTitle will not remain large after segueing from a previous view that set it to inline (automatically)

0

103

Feb '24

Quick Animation Clarification

2

170

Feb '24

SOLVED: How SwiftData following external JSON changes

14

796

Feb '24

SOLVED: Adjustments on Catalyst port of my app from iOS

8

1742

Feb '24

SOLVED: How to determine which List row that we've scrolled to is in view?

1

300

Feb '24

SOLVED: SwiftData and mapping two data models (changing Moonshot project to SwiftData)

3

406

Feb '24

Generic child views containing bindings do not re-render / UI does not update

0

99

Feb '24

SOLVED: Formatting a string as a date and ignoring text at the end?

1

206

Feb '24

SwiftData: How to make a copy of a model containing an array of other models

2

399

Feb '24

SOLVED: A weird problem, about swiftData insert

1

174

Feb '24

Working with SwiftUI Table and SwiftData

1

431

Feb '24

invalid display identifier error while trying to make app full screen.

0

160

Feb '24

SOLVED: API to detect focus mode? (Personal, Work, Sleep, etc)

1

260

Feb '24

Struggling with Bindings

0

200

Feb '24

RealityKit: Incorrect Shadows with Directional Light

1

210

Feb '24

I need help with barcode

0

81

Feb '24

SOLVED: Why can't I parse this JSON data? Error: "Couldn't parse *.json as Array<Competition>"

9

562

Feb '24

SOLVED: Conditionally showing toolbar items when in EditMode

3

348

Feb '24

Changing .chartXVisibleDomain(length: ) causes the chart to move to another position - how to stop this?

0

264

Feb '24

iOS 16 TextField, axis parameter, and keyboard avoidance

4

2460

Feb '24

How to compose complex views in SwiftUI

1

264

Feb '24

How to make SwiftData document-based app coexist with Core Data using same persistent container from the document

0

116

Feb '24

SOLVED: Should the .externalStorage attribute work with a SwiftData model property that is an array of optional data?

1

223

Jan '24

AppStorage save select swift data

0

104

Jan '24

Need Advice On Storing Data

3

405

Jan '24

'init(destination:isActive:label:)' was deprecated in iOS 16.0

7

1030

Jan '24

How to generate points in text? ๐Ÿ™

5

392

Jan '24

How to work with VectorArithmetic and Accelerate

1

177

Jan '24

Advice for a problem with the dismiss button

0

136

Jan '24

How to use a SwiftData custom fetch descriptor to limit properties to fetch while using a dynamic filter predicate

0

195

Jan '24

SOLVED: Adding searchable affects position of child views

2

277

Jan '24

Canvas TapGestures HitAreas or Alternative

0

125

Jan '24

Swipe to delete in Picker "List" view

0

108

Jan '24

SOLVED: Frilly circle border ?

2

341

Jan '24

SOLVED: SwiftData Predicate changing at user input?

4

423

Jan '24

Updating @State variable, view not updating

1

1405

Jan '24

IPAD SWIFTUI APP SPLIT-SCREEN

0

125

Jan '24

How to properly add a new item to an NSSet related to another entity in CoreData

2

219

Jan '24

"Stream" data from child view to parent view

0

181

Jan '24

Feeling lost already in Project 2?

1

158

Jan '24

All interactions here are governed by our code of conduct.

TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ โ€“ it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and free gifts!

Find out more

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.