NEW: My new book Pro SwiftUI is out now – level up your SwiftUI skills today! >>

Forums > Swift

Help and discussion for the Swift language.

  Title Replies Views Activity

About the Swift forum

10

7547

Sep '20

SOLVED: Calculating Dates and Double

2

56

11h

SOLVED: Not appending in nested for loops

2

50

17h

Passing Intent Handler Function as a Parameter Question

1

16

1d

SOLVED: Sorting with many, many criteria

3

57

2d

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

1

77

3d

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

1

36

3d

SOLVED: Computed var referencing “parent” var

3

60

4d

How can I use speech synthesis as an alarm?

0

47

4d

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

131

5d

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

0

37

5d

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

2

265

6d

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

8

128

7d

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

7

171

10d

SOLVED: NSKeyedUnarchiver.unarchivedObject(ofClass:) throwing error

4

95

10d

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

4

97

11d

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

3

140

13d

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

4

116

13d

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

4

116

14d

Day 31 - WordScramble (visual bug)

0

37

17d

SOLVED: Creating a function that finds the sum of elements between two arrays, adding only the corresponding elements (first + first, second + second, etc.)

4

119

18d

Access Control with CoreData and FileManager

0

55

18d

SOLVED: Feedback - Checkpoint 6 (Multiple POVs ok)

1

85

19d

SOLVED: Calculating first and last day of the month.

3

126

19d

How does one set-up a server to collect testing metrics with?

0

30

20d

SOLVED: Using a for-in loop to project yearly 401k balances based on monthly deposits accounting for several future promotions/pay raises

4

110

20d

SOLVED: Codable structs - trying to understand what a Codable struct should look like for this JSON

4

89

21d

SceneKit: How to make a custom SCNPhysicsField?

1

72

22d

SOLVED: Checkpoint 5

3

137

25d

SOLVED: Using reduce(_:_:) to calculate savings balance year after year

10

184

25d

SOLVED: Better more efficient approach

5

169

25d

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

3

124

25d

Devices Not Connecting (Multipeer Connectivity)

0

49

26d

How to limit TextField to a maximum of two decimal places

7

335

28d

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

3

93

Feb 19

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

7

146

Feb 17

Network Status Check

8

2531

Feb 15

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

4

130

Feb 15

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

2

107

Feb 12

SOLVED: Understanding inheritance in child classes

1

101

Feb 11

SOLVED: Decoding JSON

2

102

Feb 10

Use a SwiftUI chart in UIKit

3

626

Feb 9

Syncing UserDefaults with Zephyr Causes "undefined" behavior

0

62

Feb 5

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

2

104

Feb 5

Isn;t Swift a type safe language

1

108

Feb 4

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

4

645

Feb 2

SOLVED: Why does @AppStorage not work

4

314

Feb 2

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

77

Feb 1

Best way to store multiple jsons

0

61

Feb 1

Understanding Dependency Injection - Swift

2

143

Feb 1

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

10

265

Feb 1

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

5

273

Jan 31

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

3

120

Jan 29

SOLVED: How to calculate yearly earnings

2

138

Jan 28

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

0

68

Jan 28

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

2

212

Jan 27

Data from multiple entities into array for math ops

7

341

Jan 25

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

3

130

Jan 24

SOLVED: How would you structure this in Core Data?

5

544

Jan 21

Trying to build an app with calendar integration?

0

72

Jan 21

SOLVED: Date formatting seems to be adding one day.

2

157

Jan '23

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

1

140

Jan '23

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

1

92

Jan '23

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

3

190

Jan '23

Using Unwrap to Study? It’s broken?

1

100

Jan '23

SOLVED: It works on iPhone, but not on iPad

3

194

Jan '23

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

2

340

Jan '23

Move character with SceneKit

0

104

Jan '23

SwiftUI and MVVM basics

4

269

Jan '23

SOLVED: Connecting two entities doesn't always work

1

152

Jan '23

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

6

203

Jan '23

List doesn't update after data changed

0

93

Jan '23

Converting a string to a date

4

274

Jan '23

Hiding chartYAxis if phone is in portait mode

1

110

Jan '23

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

1

154

Jan '23

Xcode 13 to Xcode 14

1

201

Jan '23

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

5

425

Jan '23

understanding global queues

3

194

Jan '23

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

2

176

Dec '22

Can I not use a URL for UIImage?

1

119

Dec '22

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

0

85

Dec '22

String Date to Date

1

186

Dec '22

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

2

290

Dec '22

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

0

138

Dec '22

Using data collected from an API in subsequent views

2

223

Nov '22

Loading JSON ignores different subclasses

2

407

Nov '22

SOLVED: Help Needed: JSON Encoding

4

456

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

718

Nov '22

How to detect ANY change of a class property

1

449

Nov '22

Revert UIApplication.shared.isIdleTimerDisabled to its initial state

0

211

Nov '22

SOLVED: How to initialize this subclass

4

458

Nov '22

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

4

430

Nov '22

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

5

1510

Nov '22

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

4

530

Nov '22

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

4

463

Nov '22

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

0

169

Oct '22

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

0

317

Oct '22

H264 frame decoding help

0

145

Oct '22

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

3

496

Oct '22

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

1

161

Oct '22

 
 

All interactions here are governed by our code of conduct.

Hacking with Swift is sponsored by Essential Developer

SPONSORED From March 20th to 26th, you can 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!

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.