SwiftUI Custom Alerts | iOS/iPadOS 17 & 18

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

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

  • @DurgaViswanadh
    @DurgaViswanadh 2 дня назад

    I was most awaited for this tutorial ❤

  • @taskinrits
    @taskinrits День назад

    What's the 0.05s sleeping intended for? 5:04
    Anyway, thank you for every video guides :):):)

    • @Kavsoft
      @Kavsoft  День назад

      When launching full-screen-cover without animation via transaction, sometimes at random setting animatedValue to true via onAppear or on task modifier also gets non-animated, thus to avoid this I introduced a very little delay to separate alert animations apart from transaction actions!

  • @weeee733
    @weeee733 День назад

    @Kavsoft
    Can i ask why is @escaping added when declaring an extension for alert modifier? 1:00

    • @Kavsoft
      @Kavsoft  День назад +1

      Actually, since I'm not storing the closure for future use, there's no need to use the @escaping attribute here.
      You can simply omit it!

    • @weeee733
      @weeee733 День назад

      @@Kavsoft Got it! Thanks

  • @samtr4439
    @samtr4439 2 дня назад

    Thanks!!!