Post

Replies

Boosts

Views

Created

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
68
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
710
Feb ’24
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
910
Jun ’21
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
Aug ’20