Post

Replies

Boosts

Views

Activity

Implementation of IAP -> Trial Period to Purchase Product
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?
0
0
93
Sep ’25
How do I prepare CloudKit data for Swift Charts?
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!
1
0
739
Feb ’24
How to conditionally set TabView's $selection
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")             }         }     } }
3
0
3.5k
Mar ’22
How to use offset in order to find the last 10 'games'
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
1
0
933
Jun ’21
Implementation of IAP -> Trial Period to Purchase Product
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?
Replies
0
Boosts
0
Views
93
Activity
Sep ’25
How do I prepare CloudKit data for Swift Charts?
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!
Replies
1
Boosts
0
Views
739
Activity
Feb ’24
Can we assign ScrollViewReader's scrollTo target before a view opens?
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:
Replies
0
Boosts
0
Views
554
Activity
Jan ’23
In CloudKit, can I rename a record type?
..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
Replies
0
Boosts
0
Views
681
Activity
Jan ’23
Blood ketone tracking in Health Kit
Can you add a Blood Ketone tracking graph to the dashboard in HealthKit?
Replies
1
Boosts
0
Views
830
Activity
Jan ’23
How to conditionally set TabView's $selection
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")             }         }     } }
Replies
3
Boosts
0
Views
3.5k
Activity
Mar ’22
CloudKit Console: Field 'recordName' is not marked queryable
[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!
Replies
3
Boosts
0
Views
2.5k
Activity
Oct ’21
How to use offset in order to find the last 10 'games'
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
Replies
1
Boosts
0
Views
933
Activity
Jun ’21