I'm developing an iOS game with Unity. I want to use a system font called Hanzipan TC Bold. Can I use that font in my game? (I'll be using it via Unity, not X-Code).
Post
Replies
Boosts
Views
Activity
I'm just getting started with Swift/SwiftUI and iOS in general, so I have a long way to go, but I've been looking at the CoreData sample project, and I want to change it from using a NavigationView to a NavigationStack.
So like this...
var body: some View {
NavigationStack {
List {
ForEach(items) { item in
NavigationLink {
Text("Item at \(item.timestamp!, formatter: itemFormatter)")
} label: {
Text(item.timestamp!, formatter: itemFormatter)
}
}
.onDelete(perform: deleteItems)
}
.toolbar {
ToolbarItem(placement: .navigationBarTrailing) {
EditButton()
}
ToolbarItem {
Button(action: addItem) {
Label("Add Item", systemImage: "plus")
}
}
}
Text("Select an item")
}
}
But when I do that, and you tap on on the list, it takes 10 taps of the 'back' button to get back to the list again. So I presume its pushing 10 views onto the stack? But how would I change that, so it only pushes the current view onto the stack, so tapping 'back' the once, takes you straight back to the list? Thanks for any help.
I've been planning an iOS app for some time which uses SwiftData and will be subscription based, and have done some development work on it. But now I'm wondering if I should also do a MacOS version, and that got me wondering if it's possible to do a multiplatform version? I've done searching, and can't find much info on such development. So my qestions are...
If I choose multiplatform in Xcode, do I just make one version of the code, and the API will know what platform it's on automatically?
Does SwiftData also work on MacOS?
Would I setup the same subscription to work on the iOS app store and the Mac app store? I'm planning on using RevenueCat. Or would subscriptions in both stores be completely seperate?
Are there some things that are just not compatible between the platforms that I should be aware of?
Is it just better to do 2 different xcode projects, despite the large amount of code overlap?
I'm developing a multiplatform app, that will run on mobile and desktop. And it will be subscription based.
What I don't get, is how does it work across the 2 stores? If someone signs up for a subscription on the Mac app store, how will the iOS app store, know the person has already subscribed in the other version? And vice versa?
Would the user just download whatever version, fire it up and then I could just offer for the person to sign in, if they already have an account and then I'll know if they are subscribed or not?