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

Forums > Swift

Help and discussion for the Swift language.

  Title Replies Views Activity

About the Swift forum

10

9548

Sep '20

SwiftData outside of View

2

384

1d

SwiftData - Using it in a class

6

2042

4d

Different UITableView behavior on different devices

2

58

9d

Data from multiple entities into array for math ops

14

2829

10d

SOLVED: Facing Issue with GitHub API call

1

51

11d

How can I debug JSONDecoder?

3

81

12d

SOLVED: Phone regex giving out of bounds error

3

77

14d

Component of components

2

126

20d

Should a struct's properties be optional when working with JSON data?

1

58

21d

Sectioned Fetch Request without a property wrapper?

2

90

21d

Which thread or queue does Task run on when using @MainActor?

1

268

22d

Cloudkit app with same codebase, macOS uses development database, iOS uses production

0

37

27d

How do I embed a ScrollView in a NavigationStack?

2

218

27d

How do I prepare CloudKit data for Swift Charts?

1

66

27d

SOLVED: Swift Array append woes

4

149

29d

SOLVED: Something wrong with SwiftData

6

339

Feb 18

Swift Standard Library - How are operators implemented

2

140

Feb 16

How Can I Clean The API Response (JSON) From HTML Tags and Twitter Stuff

0

50

Feb 13

Help! How add Header in UICollectionView

1

95

Feb 10

Help! Please help, I am stuck: SwiftData Migration

18

877

Feb 6

Cycle through enum - checking if that value exists an object

2

119

Feb 6

Is it possible to disconnect SectionHeade from one UICollectionView?

0

52

Feb 5

Alright, I have no clue what I'm doing...

1

130

Feb 3

How to upload default-data to the public CloudKit database

6

1435

Feb 2

Data Inconsistency when Syncing Core Data to CloudKit

0

74

Feb 2

Changing order of array

3

170

Feb 1

SOLVED: SwiftData Model with an array of another Model inside - problem

4

525

Jan 29

ExpressibleBy#Literal with parameter pack "Cannot convert value of type '#ExpressibleType' to expected argument type '#Type'"

0

64

Jan 28

How to sort Swift Data by the original order of a decoded JSON array

0

104

Jan 22

How to save data safery 🤔?

0

82

Jan 22

Looking for an easy way to decode JSON into an object, but with partial data

2

185

Jan 20

How to change property type with custom migration?

1

184

Jan '24

SwiftData iCloud Syncing isn't working in default project

1

179

Jan '24

Cell is not configured in collection view with Diffable data source, while using generics

0

87

Jan '24

How to implement Header in UITableView UIKit?

10

348

Jan '24

C++ libraries & Swift

0

105

Jan '24

Sharing from books app

0

83

Jan '24

How to pass data to the parent View from is a child 🙄?

3

322

Jan '24

SOLVED: Preload app with SwiftData objects?

1

179

Jan '24

Binary operator “+” cannot be applied to operands of type “Int” and “Double”

4

344

Jan '24

how to take the value of child elements XML?

0

132

Dec '23

Verify if phone can access internet even though connected to wifi.

9

1361

Dec '23

Toggle with variable isOn parameter

3

298

Dec '23

SwiftData: improper model with nonsensical relationship definitions

1

192

Dec '23

How to migrate @Published with Combine to the new @Obserbable?

1

630

Dec '23

How do I adjust the font size in Adobe Reader to make text easier to read?

0

107

Dec '23

How do I add new fonts to Google Docs?

0

109

Dec '23

How upload data through Coordinator?

2

175

Dec '23

I am learning Swift

2

241

Dec '23

How to pre-load an app with multiple json files

1

136

Dec '23

SOLVED: Dynamic Query in SwiftData is failing

2

397

Dec '23

How sent infrormation from Second ViewController back?

0

172

Dec '23

Solved: SwiftUI/EnvironmentObject.swift:90: Fatal error: No ObservableObject of type PomodoroModel found. A View.environmentObject(_:) for PomodoroModel may be missing as an ancestor of this view.

4

375

Dec '23

SwiftUI StoreKit with IOS 17

4

498

Dec '23

SOLVED: Camera activated on views without camera

3

1079

Dec '23

SwiftData - model context in a bigger application. How to work with it?

1

259

Dec '23

SOLVED: Problem with calculation of differences between month-value pair beyond the turn of the year

3

373

Nov '23

Creating a macOS app with Haskell and Swift

0

162

Nov '23

macOS 14 upgrade caused new confusing errors in my Swift test.

8

839

Nov '23

SOLVED: SwiftData: How do I create an Add view with an optional date

5

1409

Nov '23

SOLVED: Challenge: can you port this Rust function to Swift?

1

245

Nov '23

SOLVED: Unwrap "create Player struct" challenge

4

501

Nov '23

Purchase "Swift against humanity"

2

288

Nov '23

Which library to extract notes from sound?

3

643

Nov '23

SwiftData Book - Add Backup Procedure.

1

502

Nov '23

AVAudioRecorder and SwiftData

0

301

Nov '23

How to Upload HealthKit Data in the background?

0

285

Nov '23

SOLVED: How to earn "Earnings" in the Unwrap App

1

229

Nov '23

How fix problem Cannot find type 'You_class' in scope? 🙄

1

447

Nov '23

SOLVED: Isometric grid overlay

1

300

Nov '23

who has pod smcamera_ios?

0

189

Oct '23

Hangman game

2

353

Oct '23

SOLVED: How to figure out which swift closure is holding strong reference?

2

427

Oct '23

GameKit achievement notifications not showing up even though they were working before?

1

642

Oct '23

JSONDecoder and absent optionals

0

189

Oct '23

SwiftData problem with SortDescriptor

1

374

Oct '23

Obfuscating JSON data

1

428

Oct '23

Concurrency URLSession extension example query

0

194

Oct '23

SOLVED: Querying with SwiftData

8

2017

Oct '23

Fatal Error: Duplicate keys...

0

642

Sep '23

iOS 17 | Disk Full | Developer/System Data | Irregular heating

3

549

Sep '23

MapKit create custom places and navigate to them

7

1043

Sep '23

SOLVED: Remove or resize an image when selecting an item in a Picker view?

3

858

Sep '23

SOLVED: Modified Core Data Model and CloudKit Syncing

2

467

Sep '23

SOLVED: Hacking arend with JSON invalid key containing a space - no snakes or camels

7

841

Sep '23

Xcode 15

4

876

Sep '23

SOLVED: Group Core Data items by category in List in SwiftUI

7

996

Sep '23

Project 12 - Problem with unarchiving :(

1

325

Sep '23

SOLVED: Measurement conversion error?

1

320

Sep '23

Setting up problems

1

300

Sep '23

didBegin is not working in swift

1

226

Sep '23

SwiftData

4

1295

Sep '23

Help needed: Type annotations for generic types result in loss of generic flexibility

0

236

Aug '23

SOLVED: Not able to show image on the UI

5

624

Aug '23

SOLVED: How can I edit something that was already saved in CoreData?

2

643

Aug '23

Trouble getting CloudKit to work with Core Data

0

447

Aug '23

SwiftData What is this parameter in ModelConfiguration?

6

1498

Aug '23

SOLVED: How to get rid of AppDelegate in modern Swift Apps

5

907

Aug '23

SOLVED: Can you make a non-concrete type conform to codable?

6

1127

Aug '23

 
 

All interactions here are governed by our code of conduct.

Hacking with Swift is sponsored by Proxyman

SPONSORED Proxyman: A high-performance, native macOS app for developers to easily capture, inspect, and manipulate HTTP/HTTPS traffic. The ultimate tool for debugging network traffic, supporting both iOS and Android simulators and physical devices.

Start for free

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.