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

Version Path
turbo-native-initializer-0.0.6 lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Controllers/NumbersViewController.swift
turbo-native-initializer-0.0.6 lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Controllers/NumbersViewController.swift
turbo-native-initializer-0.0.5 lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Controllers/NumbersViewController.swift
turbo-native-initializer-0.0.5 lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Controllers/NumbersViewController.swift
turbo-native-initializer-0.0.4 lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Controllers/NumbersViewController.swift
turbo-native-initializer-0.0.4 lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Controllers/NumbersViewController.swift
turbo-native-initializer-0.0.3 lib/turbo_native_initializer/templates/ios_stack/TurboNativeProject/Controllers/NumbersViewController.swift
turbo-native-initializer-0.0.3 lib/turbo_native_initializer/templates/ios_tabs/TurboNativeProject/Controllers/NumbersViewController.swift