iOS 15: Creating a custom component with @Binding – Bookworm SwiftUI Tutorial 1/10

preview_player
Показать описание

Other parts in Project 11:

1. Creating a custom component with @Binding: This video

Рекомендации по теме
Комментарии
Автор

Your dog is so beautiful. Thanks from Russia

izzzanaaami
Автор

your dog is so lovely, even i am not a dog-person

maverickchan
Автор

thanks for you from Algeria.Only one question.why i can't have an IU like your's under windows10?.The Background's of mine's IU is white .excuse m English languauge.thank's for responding me.

ghadjmadj
Автор

Arya? Is the other dog's name Sansa or Robb or Jon?

DavidNitzscheBell
Автор

Hi. After verifying on the simulator that the PushButton view works, I decided to put it in it’s own PushButton.swift file. So, I cut and pasted the struct PushButton from ContentView.swift to the new PushButton.swift, I then changed struct PushButton_Previews: PreviewProvider to say:
struct PushButton_Previews: PreviewProvider {
@State private var rememberMe = false
static var previews: some View {
PushButton(isOn: $rememberMe, title: “Button”)
}
}

But it gives an error on the line that has the PushButton(isOn: $rememberMe, title: “Button”) that says:
“Instance member ‘$rememberMe’ cannot be used on type ‘PushButton_Previews’ “

williamsquires