Remove thte unused helper code in Example

This commit is contained in:
DreamPiggy 2020-02-25 17:23:23 +08:00
parent 465e5fc3a1
commit 289e0bdcf5
1 changed files with 1 additions and 9 deletions

View File

@ -10,14 +10,6 @@ import SwiftUI
import SDWebImage
import SDWebImageSwiftUI
// Allows `String` in `ForEach`
extension String : Identifiable {
public typealias ID = Int
public var id: Int {
self.hashValue
}
}
#if os(watchOS)
// watchOS does not provide built-in indicator, use Espera's custom indicator
extension Indicator where T == LoadingFlowerView {
@ -107,7 +99,7 @@ struct ContentView: View {
func contentView() -> some View {
List {
ForEach(imageURLs) { url in
ForEach(imageURLs, id: \.self) { url in
NavigationLink(destination: DetailView(url: url, animated: self.animated)) {
HStack {
if self.animated {