Post

Replies

Boosts

Views

Activity

MapKit for SwiftUI iOS 17 - deselect Selected Marker
I am testing using MapKit for SwiftUI on iOS 17. I can select an Marker and when selected, that Marker gets bigger as expected. However, I would like to display a custom view for the selected Marker. I can display that custom view and dismiss that view when user selected the "dismiss" button. But, the Marker remains big (as selected). How to dismiss it without user interaction?
0
1
524
Oct ’23
UIDocumentBrowserViewController iOS16 additionalTrailingNavigationBarButtonItems are duplicated
Hi, I have an app on AppStore using UIDocumentBrowserViewController, see link below. I have "Settings" icon as a trailing Navigation Bar item menu. WIth iOS16, that icon is duplicated... No issue with iOS14 or 15. If I change from TrailingNavigation to LeadingNavigation, I don't see the issue. I have created a sample app and I can repro the same issue. Also, I checked another vendor app who I think is also using UIDocumentBrowserVIewController and I can see the same issue. Do I just raise a defect report? Thank you Maurice https://apps.apple.com/au/app/private-photo-video-document/id1625834751
1
0
619
Jun ’23
SwiftUI Charts - MTLTextureDescriptor has width (9649) greater than the maximum allowed size of 8192
Hi, SwiftUI Charts IOS 16.1 I get crash in the Simulator (tried iPhone or iPad). See console message below. The strange thing is that if I ran the same app on my iPhone 12, no crash. Thank you 2023-01-11 13:58:57.306324+1100 MyMoney[52429:14665675] Metal API Validation Enabled 2023-01-11 13:58:57.451214+1100 MyMoney[52429:14665675] [error] RBLayer: unable to create texture: BGRA8Unorm, [19057, 938] 2023-01-11 13:58:57.451426+1100 MyMoney[52429:14665675] [error] RBLayer: unable to create texture: BGRA8Unorm, [19057, 938] 2023-01-11 13:58:57.470351+1100 MyMoney[52429:14665675] -[MTLTextureDescriptorInternal validateWithDevice:], line 1344: error 'Texture Descriptor Validation MTLTextureDescriptor has width (9649) greater than the maximum allowed size of 8192. ' -[MTLTextureDescriptorInternal validateWithDevice:]:1344: failed assertion `Texture Descriptor Validation MTLTextureDescriptor has width (9649) greater than the maximum allowed size of 8192.
1
0
1.4k
Jan ’23
SwiftUI Charts - Bar Chart (side by side) (not stacked), proxy value not working
Create a bar Chart with data displayed (side by side) instead of default (stacked bar chart) (using .position modifier) Issue: chart proxy value cannot find any value. If I change to stacked bar chart, then proxy value works ok. Sample code:-             Chart() {                 ForEach(barchartdata, id:\.self) { one_row in                     BarMark(                         x: .value("Date", one_row.shortDate),                         y: .value("$", one_row.steps)                     )   // LineMark                     .foregroundStyle(by: .value("Name", one_row.name))                     .symbol(by: .value("Name", one_row.name))                     .interpolationMethod(.catmullRom)                     .position(by: .value("Name", one_row.name))                 }             }             .chartPlotStyle { plotArea in                 plotArea                     .frame(width: UIScreen.main.bounds.size.width * 6/8)                     .background(.blue.opacity(0.2))                     .border(.blue, width: 1)             }             .chartOverlay { proxy in                 GeometryReader { geometry in                     RoundedRectangle(cornerRadius : 5)                         .fill(.clear)                         .contentShape(Rectangle())                         .onTapGesture { location in                             updateSelectedMonth(location: location, proxy: proxy, geometry: geometry)                         }  // onTapGesture                                     }             } ....     func updateSelectedMonth(location : CGPoint, proxy: ChartProxy, geometry : GeometryProxy) { let local_location = CGPoint(             x: location.x - geometry[proxy.plotAreaFrame].origin.x,             y: location.y - geometry[proxy.plotAreaFrame].origin.y)         let (sel_date, sel_steps) = proxy.value(at: local_location, as: (Date, Int64).self) ?? (nil,nil) }
0
1
1.9k
Jan ’23
Navigation View inside Tabview not displaying correctly in landscape mode
No issue in portrait mode. In landscape mode, navigation view and all subviews are "collapsed" into a top-level menu. See screen shots. Is it normal behaviour? Could not find any modifier to change this behaviour if it is normal. ChartView().tabItem { Label("Chart", systemImage: "chart.bar") } Page1View().tabItem { Label("Received", systemImage: "tray.and.arrow.down.fill") } } body of Page1View struct:- var body: some View { NavigationView { VStack(spacing: 10) { // ... removed for clarity } .toolbar { ToolbarItem(placement: .navigationBarLeading) { Text("tbar1") } ToolbarItem(placement: .navigationBarTrailing) { Text("tbar2") } ToolbarItem(placement: .navigationBarTrailing) { Text("tbar3") } } } } Portrait mode: Landscape mode: Landscape mode after tapping top left menu:
2
0
926
Dec ’22
UIDocumentBrowserController on iOS 16 Beta - Error in opening my app's files. Works fine in iOS 14/15
Hi, I have an app on App Store that works in iOS 14/15 and I just downloaded Xcode 16 beta to test compatibility with iOS 16 beta. My app allows selecting photos or documents and encrypt them. This work fine in iOS 16 beta. The encrypted files, I can open them and decrypt them ok in iOS 14/15. But in iOS 16 Beta, I get this error when opening the encrypted file. Any changes in iOS 16 that I should do? Thanks M 2022-08-08 15:36:02.070081+1000 HideApp[4842:1574433] [default] [ERROR] Could not resolve bookmark. Error: NSError: Cocoa 257 "The file couldn’t be opened because you don’t have permission to view it." 2022-08-08 15:36:02.070216+1000 HideApp[4842:1574433] [DocumentManager] Failed to create a url from bookmarkableString (Error Domain=NSCocoaErrorDomain Code=257 "The file couldn’t be opened because you don’t have permission to view it.") 2022-08-08 15:36:02.070343+1000 HideApp[4842:1468399] [DocumentManager] tried to call delegate -documentBrowser:didPickDocumentURLs: with an empty array of items. This indicates the items failed to be prepared and materialized on disk: (     "<DOCItemBookmark: 0x139d5fac0> FPItem=(null)" )
2
0
1.2k
Aug ’22