Post

Replies

Boosts

Views

Activity

Comment on Collection and Index error on Xcode 16
What i do was: import Foundation extension RandomAccessCollection { func get(at i: Int) -> Element? { guard i >= 0, i < count else { return nil } // calculate the collection's index by offsetting from the start index let collectionIndex = index(startIndex, offsetBy: i) return self[collectionIndex] } } What do you think? Thanks.
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’24
Comment on Collection and Index error on Xcode 16
What i do was: import Foundation extension RandomAccessCollection { func get(at i: Int) -> Element? { guard i >= 0, i < count else { return nil } // calculate the collection's index by offsetting from the start index let collectionIndex = index(startIndex, offsetBy: i) return self[collectionIndex] } } What do you think? Thanks.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’24
Comment on Collection and Index error on Xcode 16
This code is near mine. The problem is that Xcode16 don't know what is "Index" and "indices".
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’24
Comment on AppleID Login failing in virtualized OS
+1 on Fix https://github.com/utmapp/UTM/issues/5780
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’23