Repository navigation
|
Hello, I see a few warnings like this today in Xcode 27, which I didn't see in Xcode 26. Is it a new issue or I just did something wrong? Thanks. import SQLiteData
import Sharing
@Observable
class ViewModel {
@ObservationIgnored
@Shared(.appStorage(SHORT_NAME)) var sortName = "name"
}
Picker("Sort By", selection: $viewModel.sortName) { // Warning here (see below)
ForEach(items) { item in
Text(item.name).tag(item)
}
}
|
Replies: 2 comments 1 reply
|
Hi @tiendq, this deprecation has been around for awhile (PR'd in pointfreeco/swift-sharing#210 and released in 2.8 of sharing). There is a migration guide here, and the warning produced tells you exactly how to fix it. Is there a chance that when you updated from Xcode 26 to 27 that your Sharing dependency also got updated, and so that is why you are now seeing the warning? |
|
For anyone trying to do the same thing for UIKit, you need to enable the |
Hi @tiendq, this deprecation has been around for awhile (PR'd in pointfreeco/swift-sharing#210 and released in 2.8 of sharing). There is a migration guide here, and the warning produced tells you exactly how to fix it.
Is there a chance that when you updated from Xcode 26 to 27 that your Sharing dependency also got updated, and so that is why you are now seeing the warning?