Post

Replies

Boosts

Views

Activity

Reply to ScrollView won't scroll
I have the same issue with SwiftUI ScrollView on tvOS. public var body: some View { ScrollView(.vertical) { Text(attributedLicenseBody) .font(.caption) .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .leading) .padding() .onAppear { attributedLicenseBody = attribute(library.licenseBody) } } .navigationBarTitle(library.name) ._licenseViewStyle(licenseViewStyle) { if let url = library.url { openURL(url) } } .background(licenseViewStyle.background) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’25
Reply to [tvOS] ScrollView with Text does not scroll
I have the same issue just now. public var body: some View { ScrollView { Text(attributedLicenseBody) .font(.caption) .frame(maxWidth: .infinity, alignment: .leading) .padding() .onAppear { attributedLicenseBody = attribute(library.licenseBody) } } .navigationBarTitle(library.name) ._licenseViewStyle(licenseViewStyle) { if let url = library.url { openURL(url) } } .background(licenseViewStyle.background) } That codes scroll nicely on iOS.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’25