diff --git a/DXFeedFramework.xcodeproj/project.pbxproj b/DXFeedFramework.xcodeproj/project.pbxproj index 214b79e5e..f34868584 100644 --- a/DXFeedFramework.xcodeproj/project.pbxproj +++ b/DXFeedFramework.xcodeproj/project.pbxproj @@ -670,6 +670,7 @@ 6433B1312BCFC01F004EFED7 /* DXLastEventsSubscribedTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DXLastEventsSubscribedTest.swift; sourceTree = ""; }; 6435EE3C2B1F1E9200E8496C /* PrintQuoteEvents.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; path = PrintQuoteEvents.playground; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.swift; }; 643A329A2BD0137000F6F790 /* Optional+Ext.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Optional+Ext.swift"; sourceTree = ""; }; + 643A329C2BD15F2900F6F790 /* LastEventsConsole.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; path = LastEventsConsole.playground; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.swift; }; 64437A8E2A9DEE6F005929B2 /* InstrumentProfile.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InstrumentProfile.swift; sourceTree = ""; }; 64437A912A9DF1DE005929B2 /* NativeInstrumentProfileReader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NativeInstrumentProfileReader.swift; sourceTree = ""; }; 644551C92B973A0D0069E3A2 /* FetchDailyCandles.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; path = FetchDailyCandles.playground; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.swift; }; @@ -1103,6 +1104,7 @@ 64F9C6C12B4BFD8F003ED014 /* DXFeedconnect.playground */, 644551C92B973A0D0069E3A2 /* FetchDailyCandles.playground */, 6433B1302BCE87D4004EFED7 /* RequestProfile.playground */, + 643A329C2BD15F2900F6F790 /* LastEventsConsole.playground */, ); path = Playgrounds; sourceTree = ""; diff --git a/DXFeedFramework.xcodeproj/xcshareddata/xcschemes/Tools.xcscheme b/DXFeedFramework.xcodeproj/xcshareddata/xcschemes/Tools.xcscheme index c71651096..67724b15a 100644 --- a/DXFeedFramework.xcodeproj/xcshareddata/xcschemes/Tools.xcscheme +++ b/DXFeedFramework.xcodeproj/xcshareddata/xcschemes/Tools.xcscheme @@ -57,7 +57,7 @@ + isEnabled = "NO"> + argument = "Connect demo.dxfeed.com:7300 TRADE AAPL" + isEnabled = "YES"> Bool { + do { + try fetchData(feed: feed, symbol: textField.text ?? "") + } catch { + print("Error during fetching: \(error)") + } + textField.text = "" + return true + } +} + +let view = V() +view.feed = feed +view.view.frame = CGRect(x: 0, y: 0, width: 400, height: 150) + + +PlaygroundPage.current.liveView = view.view +PlaygroundPage.current.needsIndefiniteExecution = true + + + diff --git a/Samples/Playgrounds/LastEventsConsole.playground/contents.xcplayground b/Samples/Playgrounds/LastEventsConsole.playground/contents.xcplayground new file mode 100644 index 000000000..cf026f228 --- /dev/null +++ b/Samples/Playgrounds/LastEventsConsole.playground/contents.xcplayground @@ -0,0 +1,4 @@ + + + + \ No newline at end of file