mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-03-23 01:49:29 +01:00
Remove deprecation warnings for Xcode beta4
This commit is contained in:
@@ -35,7 +35,7 @@ struct LandmarkList: View {
|
||||
#if DEBUG
|
||||
struct LandmarksList_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
|
||||
LandmarkList()
|
||||
.previewDevice(PreviewDevice(rawValue: deviceName))
|
||||
.previewDisplayName(deviceName)
|
||||
|
||||
Reference in New Issue
Block a user