You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NewsArticle(author:"Mock Author",title:"Mock Title 1", description:"This is a mock description 1", url:"https://example.com/1", urlToImage:"https://seeklogo.com/images/N/new-york-times-logo-EE0F194CA3-seeklogo.com.png", publishedAt:"2024-12-01T10:00:00Z"),
144
-
196
+
145
197
NewsArticle(author:"Mock Author 2",title:"Mock Title 2", description:"This is a mock description 2", url:"https://example.com/2", urlToImage:"https://seeklogo.com/images/B/bbc-news-logo-8648ABD044-seeklogo.com.png", publishedAt:"2024-12-01T10:00:00Z"),
198
+
146
199
NewsArticle(author:"Mock Author 3",title:"Mock Title 3", description:"This is a mock description 2", url:"https://example.com/3", urlToImage:"https://download.logo.wine/logo/CNN/CNN-Logo.wine.png", publishedAt:"2024-12-01T10:00:00Z"),
description:"SwiftUI helps you build great-looking apps across all Apple platforms with the power of Swift — and surprisingly little code. You can bring even better experiences to everyone, on any Apple device, using just one set of tools and APIs.",
.modelContainer(for:[Article.self]) // Mock ModelContext for SwiftData
202
-
}
190
+
//#Preview {
191
+
// let exampleArticle = NewsArticle(
192
+
// author: "John Doe",
193
+
// title: "Breaking News: Swift is Awesome!",
194
+
// description: "SwiftUI helps you build great-looking apps across all Apple platforms with the power of Swift — and surprisingly little code. You can bring even better experiences to everyone, on any Apple device, using just one set of tools and APIs.",
0 commit comments