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.
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.
@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} ] } }
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.
Hi, it's super useful, thank you. but I can't find the source code on your patreon, why?
Oh, I think I forgot to add it. I will add it. Thanks for the info!
Man, I really wish it was possible to just build an app for ios17 and not block 50% of the population. This is sick
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.
hello Kavasoft, why you stopped produce IOS 16 videos , i mean it's too early too adopt IOS 17 features. thanks anyway
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.
@@Kavsoft thanks for clarifying ,i'm a Big Fan of your work , keep up the good Work 👍
@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}
]
}
}
You cannot access showTip on instances; you must directly change it, like FavoriteBackyardTip.showTip = true