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

SOLVED: Querying with SwiftData

8

2673

Oct '23

Fatal Error: Duplicate keys...

0

845

Sep '23

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

3

669

Sep '23

MapKit create custom places and navigate to them

7

1203

Sep '23

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

3

1144

Sep '23

SOLVED: Modified Core Data Model and CloudKit Syncing

2

550

Sep '23

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

7

1020

Sep '23

Xcode 15

4

1039

Sep '23

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

7

1465

Sep '23

Project 12 - Problem with unarchiving :(

1

445

Sep '23

SOLVED: Measurement conversion error?

1

400

Sep '23

Setting up problems

1

374

Sep '23

didBegin is not working in swift

1

278

Sep '23

SwiftData

4

1493

Sep '23

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

0

301

Aug '23

SOLVED: Not able to show image on the UI

5

780

Aug '23

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

2

791

Aug '23

Trouble getting CloudKit to work with Core Data

0

575

Aug '23

SwiftData What is this parameter in ModelConfiguration?

6

1736

Aug '23

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

5

1172

Aug '23

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

6

1373

Aug '23

SOLVED: Trying to access managed object context through a model

3

3315

Aug '23

SOLVED: Still having problems understanding how to create a Struct to extract from a JSON

8

1643

Aug '23

Best approach to share changes between classes

0

315

Aug '23

Problem trying to iterate CoreBluetooth write/read requests to OBD-II BLE adapter

0

561

Aug '23

Help. Only the last element is removed in UIScrollView 🙄

1

374

Jul '23

Multi-output enums as generics...opinions sought.

1

475

Jul '23

Update JSON with new data

0

411

Jul '23

Access outside of Sandbox

3

1010

Jul '23

Changing property wrapper's properties

2

852

Jul '23

SOLVED: Strange positioning issues with SpriteKit - what am I getting wrong?

2

985

Jul '23

Strange behaviour compiling in xCode

4

1188

Jul '23

Cannot convert value of type 'Int' to expected argument type 'String'

1

2493

Jul '23

Is it possible to use Swift Data with an external API?

0

551

Jul '23

Creating Onboarding Screen in UIKit with custom page indicators

0

536

Jul '23

Creating functions best practice

0

299

Jul '23

Fetching an entity as a dictionary, and including a related entity in the result

0

355

Jul '23

SOLVED: Executing code while writing a package?

2

678

Jul '23

SOLVED: MCNearbyServiceBrowser fails to connect after resetting services

5

1403

Jul '23

How do I change the font to small caps in PowerPoint?

0

702

Jul '23

Swift Data and CloudKit

7

7238

Jul '23

Sharing a background NSManagedObjectContext across a task group’s tasks?

1

498

Jul '23

Return from initializer without initializing all stored properties

3

1387

Jul '23

Decode JSON when dictionary keys are unknown

1

976

Jul '23

SOLVED: Decoding JSON

5

817

Jul '23

SOLVED: Calculating first and last day of the month.

4

7848

Jun '23

Error converting AXValue to CFTypeRef in AXUIElementCopyAttributeValue on MacOS

0

495

Jun '23

How to hide my API Key in my code?

2

1983

Jun '23

Context in environment is not connected to a persistent store coordinator: NSManagedObjectContext

1

873

Jun '23

sending data to table view when tapping a button using delegate pattern

1

1314

Jun '23

Understanding the PassthroughSubject and CurrentValueSubject

2

1153

Jun '23

Which text font looks good in AutoCAD drawing?

0

1026

Jun '23

Simplifying Reel Downloads on Facebook

0

336

Jun '23

SOLVED: Is there any way to approach the same functionality without "virtual" keyword in swift. (Absence of "virtual" keyword and consequences in swift)

2

574

Jun '23

Sync Local-Notifications via iCloud

0

322

Jun '23

pure-evil

1

534

May '23

What right way to restore in app purchases with swift and handle non purchased product

5

3453

May '23

Writing a function that returns a function

6

1092

May '23

Can't log in to HWS+

3

616

May '23

SOLVED: Useful Functions/Methods

1

574

May '23

DVTCoreDeviceEnabledState message

0

4925

May '23

SOLVED: Async Await with a For Loop

1

1423

May '23

Waiting until the for loops ends

0

395

May '23

CloudKit keeps syncing after being turned off until the app is relaunched

0

574

May '23

How to change Menu backgroundcolor?

0

340

May '23

Localization

3

842

May '23

HyperLinks

2

629

May '23

SOLVED: How do I create and use Environmental Variables in Swift for sensitive info?

2

668

May '23

Screenshot Function not working

3

727

May '23

How do you watch the videos and which video/book best covers Closures?

7

1685

May '23

dataTask() in loop

2

1006

May '23

how to ping an IP address

1

1864

May '23

SOLVED: JSON Issue

4

1406

May '23

Lock Screen Widget (.accessoryCircular) does not refresh

0

496

Apr '23

SOLVED: Using chatGTP in Swift?

2

774

Apr '23

Error displayed in Xcode. Error Domain=NSCocoaErrorDomain Code=4099

2

5226

Apr '23

SOLVED: 100 Day/UIKit/Day 26 Part 4, Challenge 1 &2 included, WKWebView issue/question

4

1042

Apr '23

SOLVED: Could I add .environment(\.managedObjectContext, persistenceController.container.viewContext) to a Class or a Struct?

7

1817

Apr '23

SOLVED: Confused about background colors in forms.

3

925

Apr '23

SOLVED: Error code 36 when trying to copy projectname.xcodeproj

2

561

Apr '23

SOLVED: How to update UISlider in real time so it can be in sync with a song that's playing.

2

2300

Apr '23

SOLVED: How to initialize this subclass

5

1969

Apr '23

Pre-load data when using CoreData and CloudKit

0

677

Apr '23

SOLVED: Is it ok to call Published properties from an ObservableObject class in other classes in Swift

2

559

Apr '23

How to deal with presenting modal view controllers in Swift coordinator pattern?

0

523

Apr '23

Swift Package View not showing

1

384

Apr '23

.sheet & Swift Package Manager

2

552

Apr '23

Using static libraries inside a Swift Package

0

571

Mar '23

How to store multiple iterations of a data structure into an array? The end goal is to ForEach loop through that array to display the data in a view

2

744

Mar '23

URLSession

3

691

Mar '23

How can i refresh/reload a view on orientation change to make my constraints work as intended in a different orientation?

1

981

Mar '23

MQTT with Swift

0

477

Mar '23

SOLVED: Calculating Dates and Double

2

806

Mar '23

SOLVED: Not appending in nested for loops

2

823

Mar '23

Cannot convert value of type 'RemoveFunctionIntent.Type' to expected argument type '() -> INIntent'

1

822

Mar '23

SOLVED: Sorting with many, many criteria

3

977

Mar '23

SOLVED: For loop in sorting function just plain does not work...

1

553

Mar '23

SOLVED: Playground: Troubleshooting function to create an array of hourly pay rates from employee history of promotions

1

471

Mar '23

SOLVED: Computed var referencing “parent” var

3

873

Mar '23

How can I use speech synthesis as an alarm?

0

754

Mar '23

All interactions here are governed by our code of conduct.

Hacking with Swift is sponsored by Superwall.

SPONSORED Superwall lets you build & test paywalls without shipping updates. Run experiments, offer sales, segment users, update locked features and more at the click of button. Best part? It's FREE for up to 250 conversions / mo and the Superwall team builds out 100% custom paywalls – free of charge.

Learn 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.