I have my app set up with tab navigation using TabView(selection: $selection) to a defaulted view. What I would like to do is set this up so that if a condition is not met, that the user is directed to another view within the tab navigation.
Any suggestions or help will be greatly appreciated!
struct TabNavigationView: View {
@AppStorage("city") var city: String?
@State var selection: String = "Today"
var body: some View {
TabView(selection: $selection) {
ChartView()
.tabItem {
Image(systemName: "star.fill")
.imageScale(.large)
Text("Today")
}
NavigationView {
LocationView()
}
.tabItem {
Image(systemName: "mappin.and.ellipse")
.imageScale(.large)
Text("Location")
}
}
}
}
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
[Newbie Question]. I am not sure how to find the index (that should be a Metadata) so that I can mark it as queryable. Does anyone have any suggestions for me?
Screenshots of my error and the Metadata available.
Thanks in advance!
I am trying to create a formula using Numbers by Mac in order to find how many of the last 10 games we won. Although I know how many games there are, we are in mid-season.
I am able to use this formula in Excel:
=COUNTIF(OFFSET(C3,COUNTA(C3:C17),0,-E3-1),"Yes")
and it works just fine.
However, when I use this formula in Numbers for Mac, I get an error saying:
Argument 4 in OFFSET must be greater than or equal to 1 and less than or equal to 1,000,000.
Can you provide any suggestions?
Thanks in advance!
Melissa
Can you add a Blood Ketone tracking graph to the dashboard in HealthKit?
I have created a simple app where a user is tracking their mood. A simple click of the button inserts the necessary data to a CloudKit database. So I consider each record as a 'transactional' record.
I am able to successfully query the data and present in a list view. I am able to sort and incorporate simple predicates.
I am now at a point in my development that I would like to add a pie chart based on the users data and I am not sure how to roll-up the data / group by the data / aggregate the data [I am not sure what the correct terminology is within Swift]
The pie chart would show the various moods that the exists in the CloudKit database and the slices would be sized based on the count of each mood.
Any guidance that you can provide would be greatly helpful!
..or do I need to delte and recreate the record type with the revised record type name?
It is already set up with the record fields
I have a scrollview that has values 1 to 30. when first opening the view, I would like the default scrollTo target to be assigned to 15.
At this moment I cannot get it to work. I can get the target to update once the view is open and I click on one of the buttons.
CODE SNIPPET BELOW:
I would like to know if it is allowed to offer the user to either unlock the app immediately or partake in a 3-day trial period before making a purchase.
I created 2 IAP non-consumable products; 1 for the immediate [which is at a discount] and for the after trial period ends [this is at a higher cost].
Is this something that Apple allows or is frowned upon?