TipKit - iOS 17 - SwiftUI - WWDC 2023

Поділитися
Вставка
  • Опубліковано 11 жов 2024

КОМЕНТАРІ • 10

  • @shinong
    @shinong Рік тому +8

    I wish this kind of tutorials always showed how the final product looks like at the beginning of the video.. I tend to lose interest if I don't see in the beginning what the tutorial is trying to achieve.

  • @stodhair
    @stodhair Рік тому

    Hi, it's super useful, thank you. but I can't find the source code on your patreon, why?

    • @Kavsoft
      @Kavsoft  Рік тому

      Oh, I think I forgot to add it. I will add it. Thanks for the info!

  • @OBLIVIOUSKARI
    @OBLIVIOUSKARI Рік тому +2

    Man, I really wish it was possible to just build an app for ios17 and not block 50% of the population. This is sick

    • @jordibruin
      @jordibruin Рік тому

      You can. You will never reach 100% of people anyway, might as well make it more fun / easier for yourself by focusing on new stuff.

  • @emadisaac7052
    @emadisaac7052 Рік тому

    hello Kavasoft, why you stopped produce IOS 16 videos , i mean it's too early too adopt IOS 17 features. thanks anyway

    • @Kavsoft
      @Kavsoft  Рік тому +1

      I did not stop. iOS 17 has released a lot of new APIs, so I'm just doing videos about it. In the future, I will be doing videos that will support iOS 16 too. Some may be featured only for iOS 17 if there is any usage of the new APIs.

    • @emadisaac7052
      @emadisaac7052 Рік тому

      @@Kavsoft thanks for clarifying ,i'm a Big Fan of your work , keep up the good Work 👍

  • @AbhishekSingh-f3d
    @AbhishekSingh-f3d Рік тому

    @Kavsoft
    // getting error myTip.showTip = true Static member 'showTip' cannot be used on instance of type 'FavoriteBackyardTip'
    import SwiftUI
    import TipKit
    struct ContentView: View {
    private var myTip = FavoriteBackyardTip()
    var body: some View {
    VStack {
    Text("here")
    Image(systemName: "globe")
    .imageScale(.large)
    .foregroundColor(.accentColor)
    Text("Hello, world!").popoverTip(myTip,arrowEdge: .top)
    Button(action: {
    myTip.showTip = true
    }, label: {
    Image(systemName: "star") })
    }
    }
    }
    struct FavoriteBackyardTip: Tip {
    @Parameter
    static var showTip:Bool = false
    var title: Text {
    Text("Save as a Favorite")
    }
    var message: Text {
    Text("Your favorite backyards always appear at the top of the list.")
    }
    var asset: Image {
    Image(systemName: "star")
    }
    var rules: [Rule]{
    return [
    #Rule(Self.$showTip){$0==true}
    ]
    }
    }

    • @Kavsoft
      @Kavsoft  Рік тому +1

      You cannot access showTip on instances; you must directly change it, like FavoriteBackyardTip.showTip = true