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

Project 12 - Problem with unarchiving :(

1

377

Sep '23

SOLVED: Measurement conversion error?

1

362

Sep '23

Setting up problems

1

338

Sep '23

didBegin is not working in swift

1

253

Sep '23

SwiftData

4

1391

Sep '23

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

0

268

Aug '23

SOLVED: Not able to show image on the UI

5

697

Aug '23

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

2

720

Aug '23

Trouble getting CloudKit to work with Core Data

0

503

Aug '23

SwiftData What is this parameter in ModelConfiguration?

6

1623

Aug '23

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

5

1029

Aug '23

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

6

1250

Aug '23

SOLVED: Trying to access managed object context through a model

3

2900

Aug '23

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

8

1563

Aug '23

Best approach to share changes between classes

0

289

Aug '23

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

0

520

Aug '23

Help. Only the last element is removed in UIScrollView 🙄

1

346

Jul '23

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

1

434

Jul '23

Update JSON with new data

0

386

Jul '23

Access outside of Sandbox

3

879

Jul '23

Changing property wrapper's properties

2

786

Jul '23

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

2

885

Jul '23

Strange behaviour compiling in xCode

4

1123

Jul '23

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

1

2257

Jul '23

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

0

510

Jul '23

Creating Onboarding Screen in UIKit with custom page indicators

0

501

Jul '23

Creating functions best practice

0

268

Jul '23

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

0

326

Jul '23

SOLVED: Executing code while writing a package?

2

626

Jul '23

SOLVED: MCNearbyServiceBrowser fails to connect after resetting services

5

1309

Jul '23

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

0

641

Jul '23

Swift Data and CloudKit

7

6943

Jul '23

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

1

453

Jul '23

Return from initializer without initializing all stored properties

3

1242

Jul '23

Decode JSON when dictionary keys are unknown

1

911

Jul '23

SOLVED: Decoding JSON

5

782

Jul '23

SOLVED: Calculating first and last day of the month.

4

7238

Jun '23

Error converting AXValue to CFTypeRef in AXUIElementCopyAttributeValue on MacOS

0

461

Jun '23

How to hide my API Key in my code?

2

1822

Jun '23

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

1

779

Jun '23

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

1

1225

Jun '23

Understanding the PassthroughSubject and CurrentValueSubject

2

1030

Jun '23

Which text font looks good in AutoCAD drawing?

0

978

Jun '23

Simplifying Reel Downloads on Facebook

0

313

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

531

Jun '23

Sync Local-Notifications via iCloud

0

300

Jun '23

pure-evil

1

504

May '23

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

5

3256

May '23

Writing a function that returns a function

6

1039

May '23

Can't log in to HWS+

3

563

May '23

SOLVED: Useful Functions/Methods

1

541

May '23

DVTCoreDeviceEnabledState message

0

4862

May '23

SOLVED: Async Await with a For Loop

1

1256

May '23

Waiting until the for loops ends

0

362

May '23

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

0

508

May '23

How to change Menu backgroundcolor?

0

315

May '23

Localization

3

783

May '23

HyperLinks

2

588

May '23

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

2

631

May '23

Screenshot Function not working

3

685

May '23

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

7

1611

May '23

dataTask() in loop

2

956

May '23

how to ping an IP address

1

1700

May '23

SOLVED: JSON Issue

4

1355

May '23

Lock Screen Widget (.accessoryCircular) does not refresh

0

460

Apr '23

SOLVED: Using chatGTP in Swift?

2

746

Apr '23

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

2

4914

Apr '23

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

4

985

Apr '23

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

7

1731

Apr '23

SOLVED: Confused about background colors in forms.

3

833

Apr '23

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

2

528

Apr '23

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

2

2121

Apr '23

SOLVED: How to initialize this subclass

5

1897

Apr '23

Pre-load data when using CoreData and CloudKit

0

623

Apr '23

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

2

526

Apr '23

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

0

505

Apr '23

Swift Package View not showing

1

363

Apr '23

.sheet & Swift Package Manager

2

518

Apr '23

Using static libraries inside a Swift Package

0

544

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

698

Mar '23

URLSession

3

634

Mar '23

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

1

843

Mar '23

MQTT with Swift

0

452

Mar '23

SOLVED: Calculating Dates and Double

2

757

Mar '23

SOLVED: Not appending in nested for loops

2

778

Mar '23

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

1

786

Mar '23

SOLVED: Sorting with many, many criteria

3

935

Mar '23

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

1

534

Mar '23

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

1

452

Mar '23

SOLVED: Computed var referencing “parent” var

3

839

Mar '23

How can I use speech synthesis as an alarm?

0

722

Mar '23

SOLVED: Is .map the right method for this task? Using .map to manipulate elements in array, operating within given constraints (projected pay raise of X% every Y years)

6

1034

Mar '23

SOLVED: Transitioning from Command Line Tool -> iOS app: Using viewModel to communicate between views

2

852

Mar '23

SOLVED: Reading rgba from a UIColor, but getting junk values in some cases

8

2082

Mar '23

SOLVED: NSKeyedUnarchiver.unarchivedObject(ofClass:) throwing error

4

3397

Mar '23

SOLVED: Problems figuring out how to define a Decode struct for a complex JSON

4

964

Mar '23

SOLVED: Form Picker Error: requires that X conform to hashable

3

1343

Mar '23

SOLVED: How to organize ForEach Lists with NavigationLinks. Trying to group some departments and not others

4

833

Mar '23

SOLVED: Decode JSON fails at end of first line...

4

1953

Mar '23

Day 31 - WordScramble (visual bug)

0

357

Mar '23

All interactions here are governed by our code of conduct.

Hacking with Swift is sponsored by Essential Developer

SPONSORED Join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer! Hurry up because it'll be available only until April 28th.

Click to save your free 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.