Post

Replies

Boosts

Views

Activity

Reply to List Closure not displaying retrieved data in Simulator UI
Here is what I propose to test for onAppear var body: some View { NavigationStack { ZStack { List(NotionCaller.extractedContent) { block in ForEach(block.ExtractedFields, id: \.self) { field in Text(field) } } .onAppear { // <<-- EITHER HERE NotionCaller.makeAPIRequest() } ZStack { Color(hex: "#f9f9f9") .ignoresSafeArea() VStack { TextField(" Search keywords", text: $searchKeywords) //change font later .frame(height: 48) .overlay(RoundedRectangle(cornerRadius: 30).strokeBorder(style: StrokeStyle())) .foregroundColor(.white) .background(.white) .cornerRadius(30) .padding() .scaledToFit() .frame(maxHeight: .infinity, alignment: .top) } VStack { Spacer() Divider() .padding() HStack { Button(action: { //add functionality later }) { Image("menuButton") .frame(alignment: .bottom) .padding(.horizontal, 42) Spacer() } HStack { Button(action: { //add functionality later }) { Image("notificationButton") .frame(alignment: .leading) .padding(.leading, 30) Spacer() } } HStack { Button(action: { }) { Image("notionImportButton") .frame( alignment: .trailing) .padding(.horizontal) .padding(.horizontal) } } } // .onAppear { // <<-- NOT HERE // NotionCaller.makeAPIRequest() // } } } } .onAppear { // <<-- OR HERE NotionCaller.makeAPIRequest() } } } }
Topic: Community SubTopic: Apple Developers Tags:
Jul ’24
Reply to App Store Connect / Trends issue
I face the same problem and filed a bug report: Jul 10, 2024 at 11:14 AM – FB14261684 Here is FB content: I cannot access AppStoreConnect (Trends and sales, overview…) on some iMac: iMac mini Pro, macOS 14.5, Safari Technology Preview Release 197 (Safari 18.0, WebKit 19619.1.18) Same Mac, with Safari Version 17.5 (19618.2.12.11.6) I get the error message When I click on contact us, I get nothing as shown I tested on another iMac (27", 2015) with MacOS 12.7 and Safari Technology Preview Release 171 (Safari 16.4, WebKit 17616.1.15) It works as expected I tested on iPhone Xs, iOS 17.4 It works as expected
Jul ’24
Reply to Can't figure out why Toolbar is not conforming to view
Welcome to the forum. I tested your code (after completing missing parts and removing reference to unknown structure) and it works OK, both with Xcode 16.0ß2 and Xcode 15.0.1. Are you sure you have declared var as State vars ? Have you declared dismiss ? Aren't you missing a closing curly bracket somewhere ? Where exactly do you get the error ? Please show the exact and complete code, as well as your configuration (Xcode version, system version…) Here is the complete code I tested: struct ContentView: View { @State var companyName: String = "" @State var role: String = "" @State var location: String = "" @State var yearlySalary: Double = 0 @Environment(\.dismiss) var dismiss var body: some View { NavigationStack { Form { TextField("Company Name", text: $companyName) TextField("Role", text: $role) TextField("Location", text: $location) TextField("Yearly Salary", value: $yearlySalary, format: .currency(code: "USD")) .keyboardType(.decimalPad) } .navigationTitle("Add Application") .navigationBarTitleDisplayMode(.large) .toolbar { ToolbarItem(placement: .navigationBarLeading) { Button("back") { dismiss() } } ToolbarItem(placement: .navigationBarTrailing) { Button("Save") { // let appdata = ApplicationData( // companyName: companyName, // role: role, // location: location, // yearlySalary: yearlySalary, // dateApplied: dateApplied, // notes: notes) // // Save the application data dismiss() } } } } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’24
Reply to Ios 18.0
Bem-vindo ao fórum Mais informações aqui: https://support.apple.com/en-au/108763 De futuro, é melhor evitar instalar versões beta, a menos que seja um utilizador experiente. Get details here: https://support.apple.com/en-au/108763 In the future, you should probably avoid installing betas unless you are an experienced user.
Jul ’24
Reply to Can't turn on Developer Mode on iPhone 12 mini
You may have a look here to check if you meet all requirements to enable developer’s mode: https://getupdraft.com/blog/how-enable-ios-developer-mode-iphone-or-ipad
Replies
Boosts
Views
Activity
Jul ’24
Reply to List Closure not displaying retrieved data in Simulator UI
Here is what I propose to test for onAppear var body: some View { NavigationStack { ZStack { List(NotionCaller.extractedContent) { block in ForEach(block.ExtractedFields, id: \.self) { field in Text(field) } } .onAppear { // <<-- EITHER HERE NotionCaller.makeAPIRequest() } ZStack { Color(hex: "#f9f9f9") .ignoresSafeArea() VStack { TextField(" Search keywords", text: $searchKeywords) //change font later .frame(height: 48) .overlay(RoundedRectangle(cornerRadius: 30).strokeBorder(style: StrokeStyle())) .foregroundColor(.white) .background(.white) .cornerRadius(30) .padding() .scaledToFit() .frame(maxHeight: .infinity, alignment: .top) } VStack { Spacer() Divider() .padding() HStack { Button(action: { //add functionality later }) { Image("menuButton") .frame(alignment: .bottom) .padding(.horizontal, 42) Spacer() } HStack { Button(action: { //add functionality later }) { Image("notificationButton") .frame(alignment: .leading) .padding(.leading, 30) Spacer() } } HStack { Button(action: { }) { Image("notionImportButton") .frame( alignment: .trailing) .padding(.horizontal) .padding(.horizontal) } } } // .onAppear { // <<-- NOT HERE // NotionCaller.makeAPIRequest() // } } } } .onAppear { // <<-- OR HERE NotionCaller.makeAPIRequest() } } } }
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to App Store Connect / Trends issue
I face the same problem and filed a bug report: Jul 10, 2024 at 11:14 AM – FB14261684 Here is FB content: I cannot access AppStoreConnect (Trends and sales, overview…) on some iMac: iMac mini Pro, macOS 14.5, Safari Technology Preview Release 197 (Safari 18.0, WebKit 19619.1.18) Same Mac, with Safari Version 17.5 (19618.2.12.11.6) I get the error message When I click on contact us, I get nothing as shown I tested on another iMac (27", 2015) with MacOS 12.7 and Safari Technology Preview Release 171 (Safari 16.4, WebKit 17616.1.15) It works as expected I tested on iPhone Xs, iOS 17.4 It works as expected
Replies
Boosts
Views
Activity
Jul ’24
Reply to I cant create new app
I also have issues with AppstoreConnect (to access trends and sales for instance). I filed a bug report FB14261684
Replies
Boosts
Views
Activity
Jul ’24
Reply to UIRefresh not working for my project?
Could you post a complete sample code to test, not just a single line ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to Can't figure out why Toolbar is not conforming to view
Welcome to the forum. I tested your code (after completing missing parts and removing reference to unknown structure) and it works OK, both with Xcode 16.0ß2 and Xcode 15.0.1. Are you sure you have declared var as State vars ? Have you declared dismiss ? Aren't you missing a closing curly bracket somewhere ? Where exactly do you get the error ? Please show the exact and complete code, as well as your configuration (Xcode version, system version…) Here is the complete code I tested: struct ContentView: View { @State var companyName: String = "" @State var role: String = "" @State var location: String = "" @State var yearlySalary: Double = 0 @Environment(\.dismiss) var dismiss var body: some View { NavigationStack { Form { TextField("Company Name", text: $companyName) TextField("Role", text: $role) TextField("Location", text: $location) TextField("Yearly Salary", value: $yearlySalary, format: .currency(code: "USD")) .keyboardType(.decimalPad) } .navigationTitle("Add Application") .navigationBarTitleDisplayMode(.large) .toolbar { ToolbarItem(placement: .navigationBarLeading) { Button("back") { dismiss() } } ToolbarItem(placement: .navigationBarTrailing) { Button("Save") { // let appdata = ApplicationData( // companyName: companyName, // role: role, // location: location, // yearlySalary: yearlySalary, // dateApplied: dateApplied, // notes: notes) // // Save the application data dismiss() } } } } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to List Closure not displaying retrieved data in Simulator UI
We cannot test with the code you posted. So only some guesses. Why do you need to DispatchQueue.main.async And try to connect .onAppear { NotionCaller.makeAPIRequest() } to the ZStack or the List and not the VStack
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to I cant create new app
Your post does not provide enough information to get any help. Could you explain: your configuration (Xcode, MacOS versions, …) what exactly your are doing (all the steps in Xcode) when you get the error
Replies
Boosts
Views
Activity
Jul ’24
Reply to 5.5" Display Images wont submit
I use iPhone 8 Plus simulator and it works fine. So, tit should work with 7+ or 6s+ which have exactly the same screen characteristics. Sorry for the question: do use generate simulator screen shots with cmd-S ?
Replies
Boosts
Views
Activity
Jul ’24
Reply to Critical Picture Distortion Issue: iPhone 14 Pro Max Camera Concern
That's a question about product, not about app development. So this is not the right forum. You'd better go to community support: https://discussions.apple.com/welcome
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to Could anyone help me and why is happening?
Have you enabled developer's mode ? See details here on what you need to do enable betas. https://developer.apple.com/support/install-beta/ step by step here: https://9to5mac.com/2023/03/28/turn-on-ios-beta-from-settings/ In case. I see your battery level is low. Retry when battery is over 50%.
Replies
Boosts
Views
Activity
Jul ’24
Reply to How Can I create a new App from API
It seems the error is explicit: "The resource 'apps' does not allow 'CREATE'. Allowed operations are: GET_COLLECTION, GET_INSTANCE, UPDATE" AFAIU, it is not possible to create an app in this way.
Replies
Boosts
Views
Activity
Jul ’24
Reply to Ios 18.0
Bem-vindo ao fórum Mais informações aqui: https://support.apple.com/en-au/108763 De futuro, é melhor evitar instalar versões beta, a menos que seja um utilizador experiente. Get details here: https://support.apple.com/en-au/108763 In the future, you should probably avoid installing betas unless you are an experienced user.
Replies
Boosts
Views
Activity
Jul ’24
Reply to Can I block certain iPhone types from using my app?
@Mous772 An option is to embed the overall view into a scrollView, sized on the device size. It will have no effector large screens, but would let user scroll on smaller ones. That's not perfect, but that would avoid a complete redesign.
Replies
Boosts
Views
Activity
Jul ’24
Reply to Failed to produce diagnostic for expression; please submit a bug report
Welcome to the forum. But, if you want anyone to help, please provide a comprehensive code to test. Where is Movie defined ? where is SmallVerticalButton defined ? same for CustomTabSwitcher What is the mainView (ContentView) ? Where exactly do you get the error ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’24