Day 49, 50, 51, 52 of #100DaysOfSwiftUI

Start 100DaysOfSwiftUI from 2020.Mar.18th.

Day 49, 50, 51, 52: Project10 part one/two/three/four
done with 3 hours

New findings: followings are new findings

  • because struct Response is not used in ContentView, so need to adjust decode code
  • maybe misssed to add specialRequestEnabled flag in sample code, but it might be assumed with other info.

following a code for getting song data of Taylor Swift (with using Xcode 11.4)

// self.results = decodedResponse
for eachResponse in decodedResponse.results {
    self.results.append(eachResponse)
}

here is the code after challenges

struct ContentView: View {
    @ObservedObject var order = Order()

    var body: some View {
        NavigationView {
            Form {
                Section {
                    Picker("Select your cake type", selection: $order.type) {
                        ForEach(0..

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です