Sha256: 3c2cac455b78157edb569975ad9911122ae1304314d9788f7f0623e4887b850c
Contents?: true
Size: 648 Bytes
Versions: 8
Compression:
Stored size: 648 Bytes
Contents
import SwiftUI class NumbersViewController: UIHostingController<NumbersView> { init() { super.init(rootView: NumbersView()) } required init(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } override func viewDidLoad() { super.viewDidLoad(); title = "Numbers" } } 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
8 entries across 4 versions & 1 rubygems