Sha256: 2bb95410096813f83bdf1ba8f8f5d8f2e5376929b70a7244ecbe6d0b424c9991
Contents?: true
Size: 499 Bytes
Versions: 26
Compression:
Stored size: 499 Bytes
Contents
import SwiftUI class NumbersViewController: UIHostingController<NumbersView> { convenience init(title: String) { self.init(rootView: NumbersView()) self.title = title } } struct NumbersView: View { private let numbers = 1 ... 100 var body: some View { List(numbers, id: \.self) { number in Text("Row \(number)") } } } struct NumbersView_Preview: PreviewProvider { static var previews: some View { NumbersView() } }
Version data entries
26 entries across 13 versions & 1 rubygems