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

Forums > SwiftUI

Help and discussion for SwiftUI.

  Title Replies Views Activity

SOLVED: How to add a button to a NavigationLink destination view

2

1721

Dec '23

The view is only updating in the button

2

305

Dec '23

SOLVED: SwiftUI + Pop to Root TabView Functionality

4

1631

Dec '23

New Topic Section Needed for SwiftData, Xcode Beta - SwiftData Question

3

1093

Dec '23

Encapsulation by EnvironmentKey ?

0

187

Dec '23

Is it possible to query multiple different Element types from a SwiftData data model at once?

3

884

Dec '23

How to set the Anchor Points of a PDF in PDFKit?

1

266

Dec '23

SOLVED: @Published property is not updated in ContentView

14

1356

Dec '23

Compiler warning - Non-constant range: argument must be an integer literal

8

71120

Dec '23

Remove item from an array if date is passed.

1

275

Dec '23

No matching navigationDestination declaration visible

2

1251

Nov '23

swiftdata With Multiple Targets membership

1

372

Nov '23

SOLVED: Getting an Error Related to NavigationStack and .navigationDestination...

1

617

Nov '23

Cloud kit Exception

0

202

Nov '23

Can I define what is being copied when the user presses COPY on a sharesheet?

1

316

Nov '23

Ideas for Implementing User Awards in App

1

406

Nov '23

SwiftUI to PDF Layout issues

2

314

Nov '23

SOLVED: centre coordinates from visible map?

11

4863

Nov '23

Firebase .order(by:) & .whereField with .addSnapshotlistener??

1

420

Nov '23

Populate a grid of shapes

0

195

Nov '23

Export to PDF, multi page PDF

5

3114

Nov '23

Bind to a struct with a property of class type (@Model)

0

182

Nov '23

Orientation iPhone iPad

4

422

Nov '23

SOLVED: Using an array of objects in a timer

2

385

Nov '23

Updating a view in a loop

1

330

Nov '23

Learning exciting new Apple technologies ✌🏻 and building apps.... and then... Android?? πŸ€·πŸΌβ€β™‚οΈ

2

366

Nov '23

Is it possible to add header and footers to an RTF file that a swiftui app is creating?

1

266

Nov '23

SOLVED: Question about putting a rounded border around a text?

8

722

Nov '23

Dates Are Hard πŸ—“οΈ

9

1877

Nov '23

TabView > List > Sheet State issue

0

184

Nov '23

Maps not updating in MacOS (and iOS)

0

169

Nov '23

Canvas: move, select, add data to objects

0

340

Nov '23

Experiencing trouble with Picker in SwiftUI

0

211

Nov '23

How to implement a swipe operation in the other scroll direction for a ScrollView?

0

202

Nov '23

Update UI on CloudKit Change

0

162

Nov '23

Is it possible to create a Picker like this? (SwiftData related)

3

1024

Nov '23

Using modern SwiftUI NavigationStack with UINavigationController

0

539

Nov '23

Render SwiftUI view to pdf ( debug Errors)

3

593

Nov '23

Reading JSON after successful decoding

1

241

Nov '23

SOLVED: How to specify line breaks in Text("") ?

5

3060

Nov '23

SwiftUI Library Views Drag and Drop in Preview

2

469

Nov '23

iDine folder issue

0

145

Nov '23

Drag and Drop in a List

0

499

Nov '23

SwiftUI: Grandparent View Not Updating on Model Change in SwiftData

0

367

Nov '23

Jumping hidden tab bar

0

278

Nov '23

SOLVED: Readonly database Error when running on physical device, works on Simulator

1

454

Nov '23

SOLVED: How can I sort SwiftData Query results by a bool?

2

1053

Nov '23

Strange issue with SwiftData

2

1096

Nov '23

SwiftData Navigation Challenge 1 - Why is this not valid?

0

245

Nov '23

Assign a value to an optional when sheet is presented

0

324

Nov '23

SOLVED: How to resize Xcode Canvas Live Preview window - it refuses to expand vertically despite using .windowResizability(.automatic) ?

3

1093

Nov '23

Gesture on map

0

327

Nov '23

Fetching SwiftData from AppIntentTimelineProvider does not work

0

380

Nov '23

Review Request once a year

3

462

Nov '23

How to conditionally exclude a navigation destination?

2

529

Nov '23

Create an Array of IDs from an Array of Structs

3

788

Nov '23

TabView with ScrollView in sheet disables scroll down to dismiss

8

1636

Nov '23

SOLVED: How to apply .onHover ( which uses @State ) to a single ViewModifer - in order to cause multiple Text views to behave the same, but activate independently ?

2

427

Nov '23

SOLVED: Apply 2 groups of modifiers to multiple text views ( aka create text styles ) ?

3

629

Nov '23

Day 47 challenge

1

349

Nov '23

Local Notification Sound problem

1

470

Nov '23

Speech recognition, limiting to task context

0

229

Nov '23

Working with Enumerations. πŸ™„

1

271

Nov '23

How do you add documents to file folder in swift preview

0

214

Nov '23

Help with NumberFormatter

3

565

Nov '23

Constraining text to wrap to image width?

2

1269

Oct '23

Switching field focus πŸ™„

2

568

Oct '23

SOLVED: Creating an URL for an Image of an Assets Catalog

2

998

Oct '23

SOLVED: Query filter error: Key path cannot refer to enum case

1

952

Oct '23

SOLVED: SwiftData and deleting a Double Linked List

3

620

Oct '23

Selecting a field from a model

2

340

Oct '23

Not Able To Customize MKMapView Annotations

0

218

Oct '23

Partially Solved: Persisting TextField (Issue With View Updating)

6

1308

Oct '23

iOS 16.4+, SwiftUI, TextField always on top of keyboard

0

375

Oct '23

**SPOILER** SwiftData By Example: "Building a Complete Project" (Challenges) **SPOILER**

3

671

Oct '23

SOLVED: #Preview macros with @Binding<String>

4

6154

Oct '23

SOLVED: Changing the color of a segmented picker...breaks if I use a NavigationView

2

578

Oct '23

Trying to save the last index in a variable to perform automatic scrolling

0

272

Oct '23

What's the iOS 16 version of AnnotationOverflowResolution?

0

338

Oct '23

Using SwiftData with a Widget leads to deadlock

0

365

Oct '23

SOLVED: How to set text position for all screen sizes in SwiftUI?

1

382

Oct '23

SwiftData requires BackingData

1

858

Oct '23

How to unit test that a radio button is setting state var correctly

0

279

Oct '23

SOLVED: Can someone please help pe understand why a function is written?

1

260

Oct '23

SOLVED: How to filter @Query with specific Value?

2

580

Oct '23

SwiftUI broken NavigationPath as of iOS 17. Not fixed as of release of GM 17.0

4

1665

Oct '23

SwiftData preview crash when adding a second model

0

528

Oct '23

Can someone help me for a quick fix with this

4

636

Oct '23

app loses state when going to background when using sizeClassic in SwiftUI

0

223

Oct '23

Read Json data and read it on ContentView

5

622

Oct '23

[Pro SwiftUI] Lava lamp crashing when the timer is too frequent

0

221

Oct '23

How does Spotify's "clear cache" button work?

0

226

Oct '23

Circular slider to continue counting after 360 degrees

0

684

Oct '23

SOLVED: Conditional Alerts

2

721

Oct '23

Is it possible to have a listRowBackground that doesn't move with the swipe action?

2

313

Oct '23

Incorrect positioning of the path

0

167

Oct '23

WebView turns blank when in background

0

467

Oct '23

Help combining String Interpolation with replacingOccurrences

0

279

Oct '23

drag gesture is dragging all the images vs the tap and long press gestures just work off clicked image

1

475

Oct '23

SOLVED: GeneratedAssetSymbols.swift

2

2335

Oct '23

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.