SwiftUIDemo icon indicating copy to clipboard operation
SwiftUIDemo copied to clipboard

Nothing appears in iPhone when running

Open sk92129 opened this issue 5 years ago • 2 comments

Hi. I like your tutorial on https://www.appcoda.com/swiftui-first-look/ to learn how to make dynamic tableview like widget using SwiftUI programmatically. I am trying to incorporate your concepts into my app. Two questions: 1.) what is "some View". That does not seem to be recognized in my xcode -- the inline error says "Cannot find 'some' in scope. 2.) when I run your full sample on github, i will compile and build successfully, but when it launches on my iPhone 8 which is running iOS 14 (not a beta), a black screen appears but nothing inside. I thought i had accidentally put dark mode on. But I dont have dark mode turned on my phone. I am using Xcode 12.0 beta4.

Any help would be appreciated.

sk92129 avatar Aug 08 '20 17:08 sk92129

And I checked the output of Xcode. I see several of these messages. 2020-08-08 10:24:06.961397-0700 Tutors[1806:700614] [Assert] Unsupported code path for UIScene-based application.

sk92129 avatar Aug 08 '20 17:08 sk92129

I figured out the "some" keyword, but the app still does not run correctly. Still black with no visible items.

sk92129 avatar Aug 08 '20 19:08 sk92129