Remove deprecation warnings for Xcode beta4

This commit is contained in:
John Holdsworth
2019-07-28 12:10:01 +01:00
parent 57e72ec52c
commit 7af0a711da
40 changed files with 63 additions and 61 deletions

View File

@@ -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))