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: Better more efficient approach

5

1462

Feb '23

SOLVED: Using .map function to transform [Int] to [String]

3

3415

Feb '23

Devices Not Connecting (Multipeer Connectivity)

0

1184

Feb '23

How to limit TextField to a maximum of two decimal places

7

4512

Feb '23

Decoding. My API returns Int value except for one...

3

399

Feb '23

SOLVED: Function error: Conforming with initializer requirements... Creating a running total of income saved month after month, year after year

7

512

Feb '23

Network Status Check

8

5058

Feb '23

SOLVED: Working with dates: Error " Binary operator '+' cannot be applied to operands of type 'Date' and 'Int' "

4

1474

Feb '23

SOLVED: How to address "resized" is inaccessible due to "internal" protection level in Unit Tests

2

1674

Feb '23

SOLVED: Understanding inheritance in child classes

1

507

Feb '23

SOLVED: Decoding JSON

2

731

Feb '23

Use a SwiftUI chart in UIKit

3

3689

Feb '23

Syncing UserDefaults with Zephyr Causes "undefined" behavior

0

476

Feb '23

How can I setup a host session discoverable by other peers?

2

955

Feb '23

Isn;t Swift a type safe language

1

409

Feb '23

SOLVED: Creating a variable for the current year... Error "Cannot infer contextual base in reference to member 'dateTime'"

4

2863

Feb '23

SOLVED: Why does @AppStorage not work

4

4602

Feb '23

Calculate Annual Earnings continued: How to account for employee's seniority with company when accessing pay rate array? And how to extend annual earning results to retirement age?

0

341

Feb '23

Best way to store multiple jsons

0

345

Feb '23

Understanding Dependency Injection - Swift

2

588

Feb '23

SOLVED: How to calculate annual earnings with a planned future promotion

10

819

Feb '23

SOLVED: How to calculate yearly earnings with a regular, yearly pay rate increase

3

472

Jan '23

SOLVED: How to calculate yearly earnings

2

535

Jan '23

Can anyone recommend an example(s) of URLSessionTransacitonMetrics when using with URLSession.shared.dataTask(with: url)?

0

411

Jan '23

SOLVED: How do I know that URLSession.shared.data throws an Error in SwiftUI

2

2330

Jan '23

SOLVED: How to compute end of year totals for 401k monthly contributions?

3

448

Jan '23

SOLVED: How would you structure this in Core Data?

5

1564

Jan '23

Trying to build an app with calendar integration?

0

336

Jan '23

SOLVED: Date formatting seems to be adding one day.

2

764

Jan '23

SOLVED: 401k Calculator: Unable to get "back-door-Roth" function to work properly. Seeking techniques to improve formulae

1

421

Jan '23

SOLVED: I would like to extract YYYMMDD from a long date.

1

337

Jan '23

SOLVED: Is there a way to create an alias for a property?

3

716

Jan '23

Using Unwrap to Study? It’s broken?

1

389

Jan '23

SOLVED: It works on iPhone, but not on iPad

3

798

Jan '23

Custom initialisers, what to put when you want you create an empty class?

2

638

Jan '23

Move character with SceneKit

0

483

Jan '23

SwiftUI and MVVM basics

4

1090

Jan '23

SOLVED: Connecting two entities doesn't always work

1

445

Jan '23

SOLVED: Displaying a double with 2 decimal places in an expandable list

6

3406

Jan '23

List doesn't update after data changed

0

366

Jan '23

Converting a string to a date

4

1641

Jan '23

Hiding chartYAxis if phone is in portait mode

1

382

Jan '23

Core Data migration problem. PersistentStore(for:) always return nil

1

952

Jan '23

Xcode 13 to Xcode 14

1

1035

Jan '23

How to access properties of a struct stored in an array when the array is of type [Any]

5

1777

Jan '23

understanding global queues

3

1303

Jan '23

Chart doesn't update when there is a change in the data

2

1076

Dec '22

Can I not use a URL for UIImage?

1

416

Dec '22

How do I get a profile image to upload to Firebase storage?

0

1207

Dec '22

String Date to Date

1

561

Dec '22

SOLVED: Why can't I add properties to my target?

2

2132

Dec '22

How to get full HTML of a page that has a "Load more" button in swift?

0

468

Dec '22

Using data collected from an API in subsequent views

2

747

Nov '22

Loading JSON ignores different subclasses

2

956

Nov '22

SOLVED: Help Needed: JSON Encoding

4

1372

Nov '22

Help needed: Xcode won't build my project because it can't find a file that I purposely deleted. How do I fix it?

6

4563

Nov '22

How to detect ANY change of a class property

1

2060

Nov '22

Revert UIApplication.shared.isIdleTimerDisabled to its initial state

0

975

Nov '22

Is there anything comparable to a ListBox like in C#?

4

1309

Nov '22

SOLVED: Is there an easy way to find the index in an array from ForEach

5

3511

Nov '22

SOLVED: Easiest way to create an array of all capital letters?

4

2397

Nov '22

SOLVED: Suggestions on a better way to implement OptionsSet with Codable

4

1581

Nov '22

XCTest is not documented. Paul's page on XCTest is unclear.

0

445

Oct '22

H264 frame decoding help

0

546

Oct '22

How does one iterate over files in a specific folder in the app Bundle?

3

1558

Oct '22

Why are table views so difficult? And autolayout as well?

1

450

Oct '22

Someone made requests to the blockchain from a swift app?

0

428

Oct '22

Want to learn programming

3

841

Oct '22

Coordinating access to NSManagedObjects across multiple background services

1

538

Oct '22

Array 'vertical flip'

4

990

Oct '22

SOLVED: How to use generics to simplify overloaded functions

4

1241

Oct '22

100 days of SwiftUI

1

488

Oct '22

SwiftUI app architecture.

4

2789

Oct '22

SOLVED: override can only be specified on class members?

1

1242

Oct '22

Some help with delegate pattern, kindly guide

6

994

Oct '22

Best resources to learn Swift?

2

1259

Oct '22

CloudKit question regarding limits

0

547

Oct '22

What user interface framework Apple TV uses?

1

489

Oct '22

Where am I going wrong?

0

1313

Oct '22

Watching Swift in One Hour - question about extension

2

750

Sep '22

Import and check contacts

4

1369

Sep '22

Watching swift in one hour - question about class refence

0

518

Sep '22

ContinuousClock() not compiling in Xcode 14?

1

962

Sep '22

How do I fix "Expected member name following '.'" error?

9

5366

Sep '22

Core Data validateForDelete misbehavior

0

599

Sep '22

Image stored in documents directory disappears on app relaunch/rebuild

0

473

Sep '22

SOLVED: How to filter array according to set content?

2

845

Sep '22

SOLVED: How to add picture to post?

3

1626

Sep '22

Recording Speech Synthesizer

0

1038

Sep '22

Multiple decode output (Choice)

2

811

Sep '22

How to handle XCode Updates

2

1663

Sep '22

SOLVED: Help with UIKit Error - unable to dequeue a cell with identifier

2

1106

Sep '22

How to convert string into date

4

7526

Sep '22

Help: inheritance, protocol, and structs

4

2811

Sep '22

Looking for an example of saving clip after using ReplayKit2 broadcast

0

589

Aug '22

SOLVED: Grabbing Struct of Struct

2

970

Aug '22

SOLVED: Week identifier in Calendar.current

4

1995

Aug '22

SOLVED: Filtering the array of structs by another array of dates

2

2989

Aug '22

In-App Purchases (Non Consumable): Can we have reusable Promo Codes?

0

565

Aug '22

All I've got so far

0

460

Aug '22

All interactions here are governed by our code of conduct.

Hacking with Swift is sponsored by RevenueCat

SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.

Learn more here

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.