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

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

3

1037

Sep '23

SOLVED: Modified Core Data Model and CloudKit Syncing

2

513

Sep '23

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

7

960

Sep '23

Xcode 15

4

981

Sep '23

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

7

1272

Sep '23

Project 12 - Problem with unarchiving :(

1

400

Sep '23

SOLVED: Measurement conversion error?

1

372

Sep '23

Setting up problems

1

346

Sep '23

didBegin is not working in swift

1

263

Sep '23

SwiftData

4

1417

Sep '23

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

0

273

Aug '23

SOLVED: Not able to show image on the UI

5

733

Aug '23

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

2

737

Aug '23

Trouble getting CloudKit to work with Core Data

0

522

Aug '23

SwiftData What is this parameter in ModelConfiguration?

6

1654

Aug '23

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

5

1077

Aug '23

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

6

1287

Aug '23

SOLVED: Trying to access managed object context through a model

3

3027

Aug '23

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

8

1590

Aug '23

Best approach to share changes between classes

0

294

Aug '23

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

0

531

Aug '23

Help. Only the last element is removed in UIScrollView 🙄

1

355

Jul '23

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

1

448

Jul '23

Update JSON with new data

0

393

Jul '23

Access outside of Sandbox

3

906

Jul '23

Changing property wrapper's properties

2

799

Jul '23

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

2

911

Jul '23

Strange behaviour compiling in xCode

4

1141

Jul '23

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

1

2328

Jul '23

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

0

534

Jul '23

Creating Onboarding Screen in UIKit with custom page indicators

0

510

Jul '23

Creating functions best practice

0

277

Jul '23

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

0

334

Jul '23

SOLVED: Executing code while writing a package?

2

641

Jul '23

SOLVED: MCNearbyServiceBrowser fails to connect after resetting services

5

1325

Jul '23

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

0

655

Jul '23

Swift Data and CloudKit

7

7020

Jul '23

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

1

460

Jul '23

Return from initializer without initializing all stored properties

3

1275

Jul '23

Decode JSON when dictionary keys are unknown

1

927

Jul '23

SOLVED: Decoding JSON

5

790

Jul '23

SOLVED: Calculating first and last day of the month.

4

7430

Jun '23

Error converting AXValue to CFTypeRef in AXUIElementCopyAttributeValue on MacOS

0

469

Jun '23

How to hide my API Key in my code?

2

1867

Jun '23

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

1

813

Jun '23

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

1

1245

Jun '23

Understanding the PassthroughSubject and CurrentValueSubject

2

1059

Jun '23

Which text font looks good in AutoCAD drawing?

0

996

Jun '23

Simplifying Reel Downloads on Facebook

0

317

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

544

Jun '23

Sync Local-Notifications via iCloud

0

304

Jun '23

pure-evil

1

511

May '23

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

5

3298

May '23

Writing a function that returns a function

6

1053

May '23

Can't log in to HWS+

3

575

May '23

SOLVED: Useful Functions/Methods

1

548

May '23

DVTCoreDeviceEnabledState message

0

4879

May '23

SOLVED: Async Await with a For Loop

1

1307

May '23

Waiting until the for loops ends

0

370

May '23

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

0

520

May '23

How to change Menu backgroundcolor?

0

322

May '23

Localization

3

803

May '23

HyperLinks

2

598

May '23

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

2

643

May '23

Screenshot Function not working

3

694

May '23

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

7

1633

May '23

dataTask() in loop

2

972

May '23

how to ping an IP address

1

1769

May '23

SOLVED: JSON Issue

4

1372

May '23

Lock Screen Widget (.accessoryCircular) does not refresh

0

472

Apr '23

SOLVED: Using chatGTP in Swift?

2

755

Apr '23

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

2

5026

Apr '23

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

4

1004

Apr '23

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

7

1750

Apr '23

SOLVED: Confused about background colors in forms.

3

858

Apr '23

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

2

537

Apr '23

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

2

2171

Apr '23

SOLVED: How to initialize this subclass

5

1919

Apr '23

Pre-load data when using CoreData and CloudKit

0

640

Apr '23

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

2

536

Apr '23

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

0

509

Apr '23

Swift Package View not showing

1

367

Apr '23

.sheet & Swift Package Manager

2

528

Apr '23

Using static libraries inside a Swift Package

0

552

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

713

Mar '23

URLSession

3

652

Mar '23

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

1

889

Mar '23

MQTT with Swift

0

462

Mar '23

SOLVED: Calculating Dates and Double

2

773

Mar '23

SOLVED: Not appending in nested for loops

2

792

Mar '23

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

1

799

Mar '23

SOLVED: Sorting with many, many criteria

3

947

Mar '23

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

1

542

Mar '23

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

1

458

Mar '23

SOLVED: Computed var referencing “parent” var

3

852

Mar '23

How can I use speech synthesis as an alarm?

0

735

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

1042

Mar '23

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

2

859

Mar '23

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

8

2124

Mar '23

SOLVED: NSKeyedUnarchiver.unarchivedObject(ofClass:) throwing error

4

3462

Mar '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.