diff --git a/Playgrounds/Basic.playground/Contents.swift b/Playgrounds/Basic.playground/Contents.swift deleted file mode 100644 index eeecfb7..0000000 --- a/Playgrounds/Basic.playground/Contents.swift +++ /dev/null @@ -1,30 +0,0 @@ -import PlaygroundSupport -import SwiftUI -import URLImage - - -struct PlaygroundView : View { - - let url = URL(string: "http://optipng.sourceforge.net/pngtech/img/lena.png")! - - var body: some View { - URLImage(url: url, - configuration: URLImage.Configuration(isImmediate: true), - empty: { EmptyView() }, - inProgress: { _ in Text("Loading") }, - failure: { error, _ in - Text(error.localizedDescription) - }, - content: { - $0 - .resizable() - .aspectRatio(contentMode: .fit) - }) - .frame(width: 320.0, height: 320.0) - .background(Color.white) - } -} - - -PlaygroundSupport.PlaygroundPage.current.needsIndefiniteExecution = true -PlaygroundSupport.PlaygroundPage.current.setLiveView(PlaygroundView()) diff --git a/Playgrounds/Basic.playground/contents.xcplayground b/Playgrounds/Basic.playground/contents.xcplayground deleted file mode 100644 index a751024..0000000 --- a/Playgrounds/Basic.playground/contents.xcplayground +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file