How to create a flipping card effect - Learn Swift UI

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024

Комментарии • 6

  • @anuragwhocodes5383
    @anuragwhocodes5383 3 года назад +2

    Good make more videos dude

  • @Stevo-pr5vx
    @Stevo-pr5vx 3 года назад +1

    Hey thanks for your video! Really great work
    I have some issues with the code.
    It seems to be a problem with .modifier(FlipEffect(flipped: Binding, angle: Double)
    What do I need to insert for Binding , angle: Double?
    Greetz from Germany and keep doing such good work

    • @codeWithAndrei
      @codeWithAndrei  3 года назад

      Hi I am glad you like the video, also I am sorry for the delay, but I'm very busy at the moment and I don't have too much time to work on RUclips content :(.
      The modifier should be like this:
      .modifier(FlipEffect(flipped: $flippled, angle: flip ? 0 : 180))
      The flippled (now I see the typo) and flip variables are defined at the top of the view as State variables
      @State var flippled:Bool = false
      @State var flip:Bool = false
      I hope this helps!

  • @VisionAppsCorp
    @VisionAppsCorp 3 года назад +1

    Verry good ! Thanks

    • @codeWithAndrei
      @codeWithAndrei  3 года назад +1

      Thank you! Tomorrow I will post tomorrow a new video

  • @judy8821
    @judy8821 3 года назад +1

    Wonderful!