TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>

Forums > Swift

Help and discussion for the Swift language.

  Title Replies Views Activity

SOLVED: How to fix 'self' is used before all stored properties are initialized?

2

18936

Feb '22

Conceptual questions about Struct's immutability and property changes from within the struct and from the instance

5

946

Feb '22

SOLVED: Can I configure XCode to create a new tab when opening a file from the Navigator?

2

5181

Feb '22

Unit Testing of CloudKit Using Mock Objects

0

697

Feb '22

SOLVED: Improve memory performance

4

1604

Feb '22

Writing/reading from file

1

914

Feb '22

Advanced Dismissing Views

4

1703

Feb '22

SOLVED: print something with „where“ (2d array)

8

1951

Feb '22

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

1

8246

Feb '22

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

1

1343

Feb '22

Change text klick button...

3

2843

Feb '22

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

0

9026

Jan '22

SOLVED: JSON Decoding Error Using A Generic

2

7544

Jan '22

SOLVED: Update records in json array

15

6672

Jan '22

Filter ForEach From a Binding

1

2261

Jan '22

How to create a value type from UIWindowScene?

1

8040

Jan '22

SOLVED: SUPER Noob question

3

1703

Jan '22

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

1

744

Jan '22

Published Variable does not change on different views.

3

2185

Jan '22

Picker With Variables Of Cities With Coordinates

1

1108

Jan '22

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

6

4762

Jan '22

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

0

635

Jan '22

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

2

907

Jan '22

XML Parser

10

3244

Jan '22

Loading Different JSON based on Locale

4

3036

Jan '22

Handle errors in HTTP request with RxSwift

1

1045

Jan '22

Question regarding ForEach usage for arrays.

2

761

Jan '22

SOLVED: Decode Complicated JSON

6

1929

Dec '21

SOLVED: Accessing an item in an array of struct instances

3

9841

Dec '21

updateSearchResults()

0

1221

Dec '21

SOLVED: Updating objects in array of objects

1

760

Dec '21

SOLVED: Multi-line string to array

1

1436

Dec '21

Funny Error

6

6719

Dec '21

SOLVED: Swift Day 2 - Question about Dictionaries

3

999

Dec '21

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

2

5367

Dec '21

@Published value incorrect on first render

0

693

Dec '21

Swift Algorithms

0

952

Dec '21

How to manipulate together structs with a generic type

0

758

Dec '21

Swipe diagonally to move node in SpriteKit

0

1075

Dec '21

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

2

3706

Dec '21

Datamodel to Parse NASA JSON

5

1748

Dec '21

SOLVED: JSON decoding not working

6

6550

Dec '21

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

8

4512

Dec '21

How to deal with object hierarchies and relationships using structs?

3

1831

Dec '21

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

0

1422

Dec '21

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

2

1288

Dec '21

Almost have it

4

1323

Dec '21

SOLVED: Best practices concerning floating-point division?

6

3336

Dec '21

Image data won't delete from CoreData

4

1883

Dec '21

math calculation on string - swift

7

5880

Dec '21

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

3

2726

Dec '21

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

2

825

Dec '21

Strange endless loop storing Date in Firestore

0

665

Nov '21

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

2

4700

Nov '21

An UIView subclass behaving like UILabel auto-layout wise

15

5988

Nov '21

SOLVED: Navigation bar superimposed on the web page navigation bar

2

3963

Nov '21

SOLVED: UIKit resources for someone doing 100 Days of SwiftUI

3

1017

Nov '21

Loading a proprietory format data file

1

668

Nov '21

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

5

3569

Nov '21

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

6

1902

Nov '21

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

0

507

Oct '21

Please help a newbie!

4

1154

Oct '21

Cannot display title of user location annotation on MapView

0

649

Oct '21

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

0

796

Oct '21

simple order (api)

0

855

Oct '21

image fade in using swift uikit

3

1651

Oct '21

Swift Playgrounds

0

838

Oct '21

Can I ignore this memory leak?

1

1472

Oct '21

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

3

1625

Oct '21

SOLVED: Failed to call designated initialiser on NSManagedObject class

4

5389

Oct '21

CarPlay vs Hands Free Audio

0

1026

Oct '21

SOLVED: MVVM Comprehension Help

3

1888

Oct '21

UICollectionViewCell with three UICollectionViews using Compositional Layout

0

2271

Oct '21

Colouring UIButton's image

0

1397

Oct '21

SOLVED: Escaping closure captures 'inout' parameter

5

17487

Oct '21

SOLVED: Help with generics and lists

2

877

Sep '21

Fix an Identifiable struct

2

1847

Sep '21

Swiftui and firebase avoid blink on load data

0

620

Sep '21

Stored Value Pass

0

643

Sep '21

pickers and picker data in swift uikit

2

1469

Sep '21

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

2

2893

Sep '21

Firebase work with sub collections getting empty

0

1256

Sep '21

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

1

1446

Sep '21

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

2

5452

Sep '21

.usesFontLeading in boundingRect gives different height

0

1340

Sep '21

Help with model concept for my app

3

1643

Sep '21

intrinsicContentSize's width is ignoring widthAnchor

0

756

Sep '21

Local Notifications with specified start date and repeatable every 3 days

1

2980

Sep '21

UITextField.text optional unwrap inside of textFieldShouldEndEditing function

2

2343

Sep '21

Learn UIKit or SwiftUI

4

2560

Sep '21

Voice Promptings

0

706

Sep '21

SOLVED: Swift and SwiftUI for Android?

2

1897

Sep '21

SOLVED: AVAudioRecorder

3

3872

Sep '21

When setting background colour of view

1

750

Sep '21

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

2

2336

Sep '21

I want to understand Delegation

2

1693

Sep '21

Two buttons to catch an event - uikit

1

640

Sep '21

Specific datatypes from MapKit

0

631

Aug '21

New Outcome with each print of an set

2

785

Aug '21

SOLVED: Making some code run only on iPad

1

2934

Aug '21

All interactions here are governed by our code of conduct.

Hacking with Swift is sponsored by String Catalog.

SPONSORED Get accurate app localizations in minutes using AI. Choose your languages & receive translations for 40+ markets!

Localize My App

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.