NEW: Learn to build the incredible iOS 15 Weather app today! >>

Forums > Swift

Help and discussion for the Swift language.

  Title Replies Views Activity

About the Swift forum

10

5287

Sep '20

SOLVED: How to run a property initialiser before self is available

1

37

13h

Published Variable does not change on different views.

3

59

2d

Picker With Variables Of Cities With Coordinates

1

20

4d

SOLVED: How to access variables inside a struct inside a class

6

51

4d

SOLVED: Update records in json array

12

117

5d

SWIFT. Cant get const identifier for use by many apps from another developer accounts

0

23

7d

How to get the comment/post description of a Photo in a shared Album?

2

60

9d

XML Parser

10

271

14d

Loading Different JSON based on Locale

4

103

15d

Handle errors in HTTP request with RxSwift

1

57

15d

Question regarding ForEach usage for arrays.

2

106

17d

How to properly cancel Tasks in a ViewModel when a ViewController is deinitialized

0

64

18d

SOLVED: Decode Complicated JSON

6

120

18d

SOLVED: Accessing an item in an array of struct instances

3

87

21d

updateSearchResults()

0

42

22d

SOLVED: Updating objects in array of objects

1

62

22d

SOLVED: Multi-line string to array

1

75

24d

Funny Error

6

1881

25d

SOLVED: Swift Day 2 - Question about Dictionaries

3

128

25d

SOLVED: Swift 5: DateFormatter Convert String to Date with Extension

2

89

26d

How transwer generic to closure?

1

54

27d

@Published value incorrect on first render

0

53

27d

Swift Algorithms

0

57

28d

How to manipulate together structs with a generic type

0

42

28d

Swipe diagonally to move node in SpriteKit

0

38

29d

What is the right way of using CloudKit as a Backup Service for Core Data?

2

1459

29d

Datamodel to Parse NASA JSON

5

160

29d

SOLVED: JSON decoding not working

6

263

Dec 18

Is the Swift Playgrounds Subscription URL for Hacking with Swift dead ?

0

74

Dec 16

SOLVED: How to implement tree data structure in Core Data?

8

2136

Dec 16

How to deal with object hierarchies and relationships using structs?

3

146

Dec 14

Dispatch.group().wait() don't work inside a function

0

53

Dec 14

SOLVED: How to pass a value from 2 steppers to countdown timer

2

102

Dec 12

Almost have it

4

117

Dec 12

SOLVED: Best practices concerning floating-point division?

6

199

Dec 9

Image data won't delete from CoreData

4

153

Dec 7

math calculation on string - swift

7

1230

Dec 7

Forced to use var + optional in object property that should be constant; what's the solution?

3

104

Dec 3

Pausable workers - what's the Swift Way To Do It?

2

88

Dec 3

Strange endless loop storing Date in Firestore

0

61

Nov 28

SOLVED: Please Help: Error in success/failure block "'catch' block is unreachable because no errors are thrown in 'do' block"

2

234

Nov 25

An UIView subclass behaving like UILabel auto-layout wise

15

1775

Nov 24

SOLVED: AVPlayer streaming from downloading file

7

5565

Nov '21

SOLVED: Navigation bar superimposed on the web page navigation bar

2

194

Nov '21

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

1

87

Nov '21

SOLVED: UIKit resources for someone doing 100 Days of SwiftUI

3

129

Nov '21

Loading a proprietory format data file

1

71

Nov '21

How to create a value type from UIWindowScene?

0

504

Nov '21

SOLVED: "Custom Zone in Public DB" error when using iOS15 / Xcode 13

5

519

Nov '21

SOLVED: What is the best way to refactor strings into one file?

6

233

Nov '21

Concurrency - How to get a Result from a task not working

0

77

Oct '21

Please help a newbie!

4

513

Oct '21

Cannot display title of user location annotation on MapView

0

68

Oct '21

In Swift UiKit, how do i create a button that when clicked takes me to the Table view?

0

77

Oct '21

simple order (api)

0

98

Oct '21

image fade in using swift uikit

3

176

Oct '21

Swift Playgrounds

0

88

Oct '21

Can I ignore this memory leak?

1

155

Oct '21

SOLVED: Accessing TableView functions outside of the TableView extension or the ViewController in which it is defined

3

232

Oct '21

SOLVED: Failed to call designated initialiser on NSManagedObject class

4

279

Oct '21

CarPlay vs Hands Free Audio

0

78

Oct '21

SOLVED: MVVM Comprehension Help

3

344

Oct '21

UICollectionViewCell with three UICollectionViews using Compositional Layout

0

105

Oct '21

Colouring UIButton's image

0

89

Oct '21

SOLVED: Escaping closure captures 'inout' parameter

5

3059

Oct '21

SOLVED: Help with generics and lists

2

175

Sep '21

Fix an Identifiable struct

2

197

Sep '21

Swiftui and firebase avoid blink on load data

0

90

Sep '21

Stored Value Pass

0

107

Sep '21

pickers and picker data in swift uikit

2

214

Sep '21

SOLVED: how to create generic array that can accept any data type?

2

199

Sep '21

Firebase work with sub collections getting empty

0

80

Sep '21

Given an array of structs with non-optional properties, why is compactMap { $0.property } fine but compactMap(\.property) doesn't work?

1

150

Sep '21

SOLVED: Why is compactMap { $0 } not equivalent to compactMap(\.self)?

2

465

Sep '21

.usesFontLeading in boundingRect gives different height

0

93

Sep '21

Help with model concept for my app

3

281

Sep '21

intrinsicContentSize's width is ignoring widthAnchor

0

107

Sep '21

Local Notifications with specified start date and repeatable every 3 days

1

275

Sep '21

Help: inheritance, protocol, and structs

3

326

Sep '21

UITextField.text optional unwrap inside of textFieldShouldEndEditing function

2

276

Sep '21

Learn UIKit or SwiftUI

4

883

Sep '21

Voice Promptings

0

110

Sep '21

SOLVED: Swift and SwiftUI for Android?

2

302

Sep '21

SOLVED: AVAudioRecorder

3

522

Sep '21

When setting background colour of view

1

155

Sep '21

SOLVED: Given an array of integers arr, replace each element with its rank.

2

338

Sep '21

I want to understand Delegation

2

250

Sep '21

Two buttons to catch an event - uikit

1

138

Sep '21

Specific datatypes from MapKit

0

100

Aug '21

New Outcome with each print of an set

2

186

Aug '21

SOLVED: Making some code run only on iPad

1

171

Aug '21

Architecture

1

254

Aug '21

Swift Package or Library

1

194

Aug '21

SOLVED: How to decode JSON response with different type

2

485

Aug '21

Environment Object not updating view

1

1052

Aug '21

Images not loading from an API call

2

261

Jul '21

Swift Playground Not Working

1

276

Jul '21

How to use the resulting callback swift code

0

233

Jul '21

TableView didSelectRowAt save value to different properties.

1

283

Jul '21

 
 

All interactions here are governed by our code of conduct.

Hacking with Swift is sponsored by Sentry

SPONSORED With Sentry’s error and performance monitoring for iOS, you see mobile vitals that actually matter, can solve any latency issues quickly, and learn how each release is performing over time.

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.