mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-04-20 07:41:28 +02:00
Remove deprecation warnings for Xcode beta4
This commit is contained in:
@@ -33,7 +33,7 @@ struct NoteList : View {
|
||||
#if DEBUG
|
||||
struct NoteList_Previews : PreviewProvider {
|
||||
static var previews: some View {
|
||||
ForEach(["iPhone SE", "iPhone XS Max"].identified(by: \.self)) { deviceName in
|
||||
ForEach(["iPhone SE", "iPhone XS Max"], id: \.self) { deviceName in
|
||||
NoteList()
|
||||
.environmentObject(UserData())
|
||||
.previewDevice(PreviewDevice(rawValue: deviceName))
|
||||
|
||||
Reference in New Issue
Block a user