Questions tagged [swift5.6]

Use this tag only for questions directly related to changes in version 5.6 of Apple's Swift programming language. Use the tag [swift] for more general language questions, or the tags [ios], [cocoa], [apple-watch] etc. for questions about developing on Apple platforms.

Swift 5.6 is a version of the Swift language developed by Apple and was released 14th March 2022.

7 questions
4
votes
0 answers

Apple Swift version 5.7 not working on Apple Swift version 5.6.1

We have built a binary framework built with Xcode 14.1 using Xcode 13.4.1 getting below error. BUILD_LIBRARY_FOR_DISTRIBUTION ENABLED ALSO. this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.7.1…
Ravikanth
  • 308
  • 1
  • 10
2
votes
1 answer

Creating CRUD Functions Using Async-Await with Vapor-Fluent - Swift 5.6

I'm trying to understand how to create CRUD functions with Vapor. It appears first() is optional, but cannot be unwrapped as an optional type func first() -> EventLoopFuture Here's my Token.swift import Foundation import Fluent import…
1
vote
2 answers

Firebase Authentication - Sign In with Apple: nonce returns nil

Strange. I'm clearly missing something. I'm setting currentNonce to the nonce I'm creating from the randomNonceString method. The handleSignInWithAppleCompletion(_:) doesn't fail. It succeeds, but crashes with the fatal error, as I would like it to…
0
votes
0 answers

No Equatable out of the box in swift for a struct

I've declared my struct to conform to Equatable struct LocationInfo: Equatable { // MARK: - Properties let gatewayId: GatewayId? let gatewaySerialNumber: String? let locationId: LocationId let locationName: String let role:…
Anton Tropashko
  • 5,486
  • 5
  • 41
  • 66
0
votes
2 answers

How do you parse an incoming dictionary in closures? I've got an error: Value of type '(Int) -> [Int : Bool]' has no subscripts

I can't find the solution to my idea. I get an error. I would like to create a big function that takes an array to change such as [1,2,3,42,342,34,3,3,2,4,5,2,3], a list with proper numbers listToFind = [1,2,3,4], and an internal function. The…
surfg
  • 1
  • 1
0
votes
0 answers

How to dismiss telephone number TextView in swift

How can I dismiss the keyboard after typing the number? I am new to the UI field. I dismissed the normal keyboard after pressing the return button. But how can I do the same in the telephone number keyboard(on the attached picture's keyboard)
0
votes
1 answer

Protocol '...' as a type cannot conform to '...' - A generic protocol of a generic protocol issue

I've been playing around with Swift and SwiftUI. I've been trying to come up with a delegate based data store for various "data entities", the intention been to be able to replace the underlying data store implementations while keeping the code…
MadProgrammer
  • 343,457
  • 22
  • 230
  • 366