From 07bad9daf75a469f3b9cb96b57ce6c4473172bcd Mon Sep 17 00:00:00 2001 From: David Mohundro Date: Sat, 12 Mar 2022 15:19:18 -0600 Subject: [PATCH] Issue fix --- swxmlhash-test/ContentView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swxmlhash-test/ContentView.swift b/swxmlhash-test/ContentView.swift index 312e707..c0e4fa2 100644 --- a/swxmlhash-test/ContentView.swift +++ b/swxmlhash-test/ContentView.swift @@ -40,7 +40,7 @@ struct ContentView: View { init() { let xml = XMLHash.parse(xmlContent) - let element: XMLElement = xml["root"]["catalog"]["book"][0]["author"].element + let element: SWXMLHash.XMLElement? = xml["root"]["catalog"]["book"][0]["author"].element firstAuthor = element!.text }