Live Activities API - ActivityKit - WidgetKit - iOS 16 - Xcode 14 - SwiftUI

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ต.ค. 2024

ความคิดเห็น • 32

  • @tiIIus
    @tiIIus 2 ปีที่แล้ว +5

    Thank you for making these awesome tutorials!

  • @GeorgyBabukhadia
    @GeorgyBabukhadia ปีที่แล้ว

    Incredible!. Thank you . Subscribing.

  • @ondaga
    @ondaga 2 ปีที่แล้ว +1

    I've been waiting for this for a while, thank you

  • @andrejkling3886
    @andrejkling3886 2 ปีที่แล้ว +1

    Excellent Balaji....

  • @borto_ale
    @borto_ale ปีที่แล้ว

    Thank you for the video, any help on how to update the activity in the background (I'm not talking about push update, but for example if I have a state that I observe and I want to change the activity ui on that state change)

    • @Kavsoft
      @Kavsoft  ปีที่แล้ว

      As of now, I guess the only way to update the live activities is through push notifications.

    • @borto_ale
      @borto_ale ปีที่แล้ว +1

      @@Kavsoft i’m sure that it is possible because it is also mentioned in the apple docs that you can update it using .update(using:) and BackgroundTasks API, but it doesn’t seem to work or be reliable

  • @tobiashauss
    @tobiashauss 2 ปีที่แล้ว +1

    Nice vid! Is there a way to stop a timer running in the live activity? For example if you have a Text view which counts from 10 seconds down: Text(Date().addingTimeInterval(10), style: .timer)? If the time is up, it will count upwards. Is there a way to stop it also in live activity?

    • @pistonsky
      @pistonsky ปีที่แล้ว +1

      Yes, you can specify `pauseTime` (next to `countsDown`), just hover over `countsDown` and tap "show quick documentation" in Xcode.

    • @tobiashauss
      @tobiashauss ปีที่แล้ว

      @@pistonsky Thanks for the hint!

  • @spraveenk91
    @spraveenk91 2 ปีที่แล้ว

    Really a good one!! Keep going!!

  • @denisblack9897
    @denisblack9897 2 ปีที่แล้ว

    5k views...
    this is pure gold, thank you so much

  • @heykwarb
    @heykwarb 2 ปีที่แล้ว

    finally Live activities is available!! thank you for a vid

  • @BabyShipCode
    @BabyShipCode 2 หลายเดือนก่อน

    Great!

  • @martcart
    @martcart ปีที่แล้ว

    Hello can we add live activity in our Objective C project as i tried separately your code in Swift its working but when we add this in Obj. C project it does not gives any issue or warning but activity is not shown can you help me in that how to make it working in objective c project much appreciated if you help in that.

  • @GracianoCaldeira
    @GracianoCaldeira ปีที่แล้ว

    Do you have any solution for the bad flickering effect when updating?

  • @AntonBrock
    @AntonBrock ปีที่แล้ว

    Wow! Awesome! Thank you!

  • @hamzahashmi6296
    @hamzahashmi6296 ปีที่แล้ว

    I keep updating live activity for 1 second interval to show the circular progress bar filling slowly as timer countdown begins but I also have Image View in Live Activity and it keeps fading in and out after every seconds. Any Solution?

  • @OflahertyChris
    @OflahertyChris ปีที่แล้ว

    Can you make a live activity that pulls from a API in he background

  • @Mavromatic
    @Mavromatic 2 ปีที่แล้ว

    Do you have an example with loading images dynamically vs local asset?

    • @Kavsoft
      @Kavsoft  2 ปีที่แล้ว

      I’m not getting your idea. Could you please explain a little bit more?

    • @Mavromatic
      @Mavromatic 2 ปีที่แล้ว +2

      @@Kavsoft yeah… loading remote images from url vs local asset catalog. In your example, you are loading the food items via loop, but referencing image by name (locally) not dynamically from remote server. Is this possible?

  • @VideoyIvana
    @VideoyIvana 2 ปีที่แล้ว +1

    Thank you very much !

  • @suhwanlim7270
    @suhwanlim7270 ปีที่แล้ว

    Do you have source code in Swift5 for dynamic island?

  • @TheSuny1234
    @TheSuny1234 2 ปีที่แล้ว

    I'm not able to add some components of iOS 16 Beta 4 like ActivityConfiguration in me Xcode 14 non-beta version. Any help

    • @Kavsoft
      @Kavsoft  2 ปีที่แล้ว

      Activity Kit is only available on Xcode 14.1 Beta

  • @devuzan
    @devuzan 2 ปีที่แล้ว +1

    it's awesome

  •  2 ปีที่แล้ว +1

    👏👏👏

  • @MinhHo-o8b
    @MinhHo-o8b 11 หลายเดือนก่อน

    image url server not working, Do you help me?

  • @ankurkalkani5462
    @ankurkalkani5462 2 ปีที่แล้ว

    Awesome!

  •  2 ปีที่แล้ว

    DONE! 👏🚀

  • @ebrahimamran
    @ebrahimamran 2 ปีที่แล้ว

    LMFAO good one