TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>

Forums > Swift

Help and discussion for the Swift language.

  Title Replies Views Activity

About the Swift forum

10

9745

Sep '20

SOLVED: CloudKit. How to avoid duplicates

2

24

9h

Firestore Optimization

0

18

2d

AVAudioRecorder and SwiftData

1

60

9d

SOLVED: UPDATED: SwiftData Attribute Fetching

6

204

13d

Dates Show 0.000000

2

81

13d

SOLVED: How to decrypt AES 128 in Swift?

2

109

18d

SwiftUI ChartXSelection on TvOS

0

49

20d

Error when trying to access non-static method from a static method

2

88

22d

Xcode 15.3

0

62

22d

SOLVED: Is there a regex for this?

10

288

23d

Passing a class reference from a list of classes isn't updating as expected

3

111

28d

XCode 15.3 frequent Crashes on m1pro, macOs 14.4.1

0

105

28d

How to add inner and outer shadows for such a shape?

0

64

29d

Trouble with Await and Task

1

121

Apr 4

SwiftData Listed Attributes

1

121

Mar 31

binding SwiftData properties

0

76

Mar 29

SOLVED: How to have trailing closure for function of type (first: () -> Void, second: String) -> Void

2

144

Mar 27

Help! Please help, I am stuck: SwiftData Migration

19

1664

Mar 26

Sending and receiving Codable data with URLSession and SwiftUI

1

127

Mar 25

Doc-App global state with focusedSceneObject solves MacOS dynamic Menu issues

0

85

Mar 24

SwiftData outside of View

3

885

Mar 20

SwiftData - Using it in a class

6

2609

Mar 14

Different UITableView behavior on different devices

2

142

Mar 10

Data from multiple entities into array for math ops

14

3185

Mar '24

SOLVED: Facing Issue with GitHub API call

1

115

Mar '24

How can I debug JSONDecoder?

3

237

Mar '24

SOLVED: Phone regex giving out of bounds error

3

213

Mar '24

Component of components

2

185

Feb '24

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

1

106

Feb '24

Sectioned Fetch Request without a property wrapper?

2

185

Feb '24

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

1

406

Feb '24

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

0

84

Feb '24

How do I embed a ScrollView in a NavigationStack?

2

413

Feb '24

How do I prepare CloudKit data for Swift Charts?

1

138

Feb '24

SOLVED: Swift Array append woes

4

276

Feb '24

SOLVED: Something wrong with SwiftData

6

723

Feb '24

Swift Standard Library - How are operators implemented

2

223

Feb '24

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

0

96

Feb '24

Help! How add Header in UICollectionView

1

314

Feb '24

Cycle through enum - checking if that value exists an object

2

211

Feb '24

Is it possible to disconnect SectionHeade from one UICollectionView?

0

116

Feb '24

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

1

205

Feb '24

How to upload default-data to the public CloudKit database

6

1864

Feb '24

Data Inconsistency when Syncing Core Data to CloudKit

0

160

Feb '24

Changing order of array

3

250

Feb '24

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

4

1384

Jan '24

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

0

120

Jan '24

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

0

204

Jan '24

How to save data safery 🤔?

0

131

Jan '24

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

2

298

Jan '24

How to change property type with custom migration?

1

334

Jan '24

SwiftData iCloud Syncing isn't working in default project

1

311

Jan '24

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

0

140

Jan '24

How to implement Header in UITableView UIKit?

10

570

Jan '24

C++ libraries & Swift

0

176

Jan '24

Sharing from books app

0

130

Jan '24

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

3

534

Jan '24

SOLVED: Preload app with SwiftData objects?

1

272

Jan '24

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

4

580

Jan '24

how to take the value of child elements XML?

0

187

Dec '23

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

9

1567

Dec '23

Toggle with variable isOn parameter

3

433

Dec '23

SwiftData: improper model with nonsensical relationship definitions

1

307

Dec '23

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

1

884

Dec '23

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

0

168

Dec '23

How do I add new fonts to Google Docs?

0

169

Dec '23

How upload data through Coordinator?

2

231

Dec '23

I am learning Swift

2

327

Dec '23

How to pre-load an app with multiple json files

1

183

Dec '23

SOLVED: Dynamic Query in SwiftData is failing

2

542

Dec '23

How sent infrormation from Second ViewController back?

0

221

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

582

Dec '23

SwiftUI StoreKit with IOS 17

4

735

Dec '23

SOLVED: Camera activated on views without camera

3

1287

Dec '23

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

1

355

Dec '23

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

3

477

Nov '23

Creating a macOS app with Haskell and Swift

0

206

Nov '23

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

8

1068

Nov '23

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

5

1923

Nov '23

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

1

310

Nov '23

SOLVED: Unwrap "create Player struct" challenge

4

630

Nov '23

Purchase "Swift against humanity"

2

349

Nov '23

Which library to extract notes from sound?

3

825

Nov '23

SwiftData Book - Add Backup Procedure.

1

601

Nov '23

AVAudioRecorder and SwiftData

0

422

Nov '23

How to Upload HealthKit Data in the background?

0

369

Nov '23

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

1

277

Nov '23

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

1

709

Nov '23

SOLVED: Isometric grid overlay

1

364

Nov '23

who has pod smcamera_ios?

0

227

Oct '23

Hangman game

2

403

Oct '23

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

2

570

Oct '23

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

1

740

Oct '23

JSONDecoder and absent optionals

0

227

Oct '23

SwiftData problem with SortDescriptor

1

443

Oct '23

Obfuscating JSON data

1

569

Oct '23

Concurrency URLSession extension example query

0

246

Oct '23

SOLVED: Querying with SwiftData

8

2561

Oct '23

Fatal Error: Duplicate keys...

0

800

Sep '23

 
 

All interactions here are governed by our code of conduct.

Hacking with Swift is sponsored by Blaze.

SPONSORED Still waiting on your CI build? Speed it up ~3x with Blaze - change one line, pay less, keep your existing GitHub workflows. First 25 HWS readers to use code HACKING at checkout get 50% off the first year. Try it now for free!

Reserve your 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.