Post

Replies

Boosts

Views

Activity

Reply to Is the Swift Playgrounds for iPad (ver 3.4) no longer able to handle a Text() view within a ForEach Loop?
I have the same problem and the frame() trick hasn’t worked for me. Thought this could be related to my old iPad 5th gen. but clearly it’s not. Here is a kicker I discovered just days ago: Enter any “Learn to code” tutorial and instead of typing what the lessons ask, try this simple test of the bug: import SwiftUI import PlaygroundSupport let s = List(1..6) { n in Text("\(n)") } PlaygroundPage.current.setLiveView(s) It will work!! Why not in a clean playground? What’s missing? This issue has extended for too long. I have a mac mini 2012 and can’t run Swift 5.3 code. I eagerly awaited for this update to the IPad app. Really frustrating. I blame Covid-19!!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’21