WWDC22 SALE: Save 50% on all my Swift books and bundles! >>

Forums > Swift

Help and discussion for the Swift language.

  Title Replies Views Activity

SOLVED: Using async await with older asynchronous Swift API's

1

1574

Feb '22

SOLVED: I want to store formatted text in Realm Swift database

1

282

Feb '22

Change text klick button...

3

324

Feb '22

'windows' was deprecated in iOS 15.0: Use UIWindowScene.windows on a relevant window scene instead

0

2648

Jan '22

SOLVED: JSON Decoding Error Using A Generic

2

1854

Jan '22

SOLVED: Update records in json array

15

1476

Jan '22

Filter ForEach From a Binding

1

625

Jan '22

How to create a value type from UIWindowScene?

1

1957

Jan '22

SOLVED: SUPER Noob question

3

840

Jan '22

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

1

268

Jan '22

Published Variable does not change on different views.

3

452

Jan '22

Picker With Variables Of Cities With Coordinates

1

277

Jan '22

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

6

1136

Jan '22

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

0

215

Jan '22

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

2

289

Jan '22

XML Parser

10

1032

Jan '22

Loading Different JSON based on Locale

4

620

Jan '22

Handle errors in HTTP request with RxSwift

1

316

Jan '22

Question regarding ForEach usage for arrays.

2

352

Jan '22

SOLVED: Decode Complicated JSON

6

747

Dec '21

SOLVED: Accessing an item in an array of struct instances

3

1610

Dec '21

updateSearchResults()

0

282

Dec '21

SOLVED: Updating objects in array of objects

1

259

Dec '21

SOLVED: Multi-line string to array

1

396

Dec '21

Funny Error

6

3910

Dec '21

SOLVED: Swift Day 2 - Question about Dictionaries

3

414

Dec '21

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

2

892

Dec '21

How transwer generic to closure?

1

305

Dec '21

@Published value incorrect on first render

0

239

Dec '21

Swift Algorithms

0

400

Dec '21

How to manipulate together structs with a generic type

0

166

Dec '21

Swipe diagonally to move node in SpriteKit

0

311

Dec '21

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

2

2166

Dec '21

Datamodel to Parse NASA JSON

5

569

Dec '21

SOLVED: JSON decoding not working

6

1190

Dec '21

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

8

2849

Dec '21

How to deal with object hierarchies and relationships using structs?

3

672

Dec '21

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

0

440

Dec '21

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

2

432

Dec '21

Almost have it

4

421

Dec '21

SOLVED: Best practices concerning floating-point division?

6

816

Dec '21

Image data won't delete from CoreData

4

577

Dec '21

math calculation on string - swift

7

2408

Dec '21

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

3

551

Dec '21

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

2

294

Dec '21

Strange endless loop storing Date in Firestore

0

205

Nov '21

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

2

1930

Nov '21

An UIView subclass behaving like UILabel auto-layout wise

15

2858

Nov '21

SOLVED: Navigation bar superimposed on the web page navigation bar

2

1184

Nov '21

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

1

235

Nov '21

SOLVED: UIKit resources for someone doing 100 Days of SwiftUI

3

381

Nov '21

Loading a proprietory format data file

1

191

Nov '21

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

5

1330

Nov '21

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

6

609

Nov '21

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

0

194

Oct '21

Please help a newbie!

4

673

Oct '21

Cannot display title of user location annotation on MapView

0

201

Oct '21

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

0

237

Oct '21

simple order (api)

0

315

Oct '21

image fade in using swift uikit

3

518

Oct '21

Swift Playgrounds

0

290

Oct '21

Can I ignore this memory leak?

1

399

Oct '21

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

3

722

Oct '21

SOLVED: Failed to call designated initialiser on NSManagedObject class

4

1508

Oct '21

CarPlay vs Hands Free Audio

0

365

Oct '21

SOLVED: MVVM Comprehension Help

3

707

Oct '21

UICollectionViewCell with three UICollectionViews using Compositional Layout

0

737

Oct '21

Colouring UIButton's image

0

421

Oct '21

SOLVED: Escaping closure captures 'inout' parameter

5

6253

Oct '21

SOLVED: Help with generics and lists

2

349

Sep '21

Fix an Identifiable struct

2

669

Sep '21

Swiftui and firebase avoid blink on load data

0

195

Sep '21

Stored Value Pass

0

215

Sep '21

pickers and picker data in swift uikit

2

620

Sep '21

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

2

529

Sep '21

Firebase work with sub collections getting empty

0

217

Sep '21

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

1

423

Sep '21

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

2

2019

Sep '21

.usesFontLeading in boundingRect gives different height

0

402

Sep '21

Help with model concept for my app

3

684

Sep '21

intrinsicContentSize's width is ignoring widthAnchor

0

237

Sep '21

Local Notifications with specified start date and repeatable every 3 days

1

817

Sep '21

Help: inheritance, protocol, and structs

3

925

Sep '21

UITextField.text optional unwrap inside of textFieldShouldEndEditing function

2

812

Sep '21

Learn UIKit or SwiftUI

4

1341

Sep '21

Voice Promptings

0

245

Sep '21

SOLVED: Swift and SwiftUI for Android?

2

787

Sep '21

SOLVED: AVAudioRecorder

3

1386

Sep '21

When setting background colour of view

1

315

Sep '21

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

2

749

Sep '21

I want to understand Delegation

2

612

Sep '21

Two buttons to catch an event - uikit

1

288

Sep '21

Specific datatypes from MapKit

0

235

Aug '21

New Outcome with each print of an set

2

341

Aug '21

SOLVED: Making some code run only on iPad

1

482

Aug '21

Architecture

1

467

Aug '21

Swift Package or Library

1

368

Aug '21

SOLVED: How to decode JSON response with different type

2

1140

Aug '21

Environment Object not updating view

1

1637

Aug '21

Images not loading from an API call

2

857

Jul '21

All interactions here are governed by our code of conduct.

Hacking with Swift is sponsored by Emerge

SPONSORED Why are Swift reference types bad for app startup time, and what’s the performance cost of protocol conformances? That’s just a couple of the topics you can learn about on the Emerge blog — written by the app performance experts behind Emerge’s advanced app optimization and monitoring tools, based on their experience of working at companies like Apple, Airbnb, Snap, and Spotify.

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.