Search results for

column

2,047 results found

Post

Replies

Boosts

Views

Activity

Reply to App Crashes in iOS 16. Unable to find crash reason
But after symbolicating I found these runtime.mach_msg_trap + 36, runtime.mach_msg + 80. Wha!?! The second column of thread 4’s backtrace shows that these symbols are coming from Freshsales, you’re app’s Mach-O image. It sounds like you’re using third-party tooling that’s making system calls directly. This is not supported on any Apple platform. If you want to make a system call, you must call the relevant routine exported by libSystem. I recommend that you escalate this with the tool’s vendor. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Sep ’22
How to sort NSTableView Date Column?
I have a date column in a macOS NSTableView column in YYYY-MM-DD format and when using the code below the sort does not sort way I want. When sorting ascending. It has the year correct but the month is in reverse order. See image below. How can I fix this? func sortInvoices(invoiceColumn: String, ascending: Bool) { enum SortOrder { static let Date = invoiceDateCreated static let Number = invoicenumber static let Customer = invoicecustomer static let Status = invoicestatus } switch invoiceColumn { case SortOrder.Date: invoices.sort { (p1, p2) -> Bool in guard let id1 = p1.invoiceDateBilled, let id2 = p2.invoiceDateBilled else { return true } if ascending { return id1 < id2 } else { return id2 < id1 } }
1
0
898
Sep ’22
Reply to How to sort NSTableView Date Column?
I changed the code to convert date to an integer and that worked for me as well changed to a different column. let dateFormatter = DateFormatter() dateFormatter.dateFormat = YYYYMMdd dateFormatter.locale = Locale(identifier: en_US_POSIX) invoices.sort { (p1, p2) -> Bool in let p1Date: Int? = Int(dateFormatter.string(from: p1.invoiceDateCreated!)) let p2Date: Int? = Int(dateFormatter.string(from: p2.invoiceDateCreated!)) guard let id1 = p1Date, let id2 = p2Date else { return true } if ascending { return id1 < id2 } else { return id2 < id1 } }
Topic: UI Frameworks SubTopic: AppKit Tags:
Sep ’22
Guideline 2.1 - Performance - App Completeness We continue to see the same bug in your app. Specifically, an activity indicator kept spinning indefinitely when we attempted to login with the demo credentials provided. Please review the details below
My app is developed with flutter and firebase Auth My app has been uploaded 10 times before and the reviewers reject it because of this reason Guideline 2.1 - Performance - App Completeness We continue to see the same bug in your app. Specifically, an activity indicator kept spinning indefinitely when we attempted to login with the demo credentials provided. Please review the details below and complete the next steps. Review device details: Device type: iPhone OS version ios 16.0I think this is because it does not send a request to Firebase to request a verification code (OTP) T his is my code body: controller.isSendingCode ? Column( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: const [ CustomLoader(), SizedBox(height: 50), Center( child: Text( 'يتم الان إرسال رمز التحقق', style: TextStyle(fontSize: 25), ), ), ], ) code-block
1
0
687
Sep ’22
How To Make Equal Heights CollectionView Groups Using UICollectionViewCompositionalLayout
I have a UICollectionViewLayout grid with three columns. Each item in the column has a cell full of text. I would like all the columns to be the same height as the tallest item in the group. Using UICollectionViewCompositionalLayout I'm having a hard time getting the desired results. I created a EqualHeightsUICollectionViewCompositionalLayout subcalss to check the cell attributes in layoutAttributesForElements and stores the largest cell height in a row. This seems to work good intially, but when the collectionview invalidates, the cell sizes are not always correct. How can I fix this? Here is an example project, and here is a stack overflow post class EqualHeightsUICollectionViewCompositionalLayout: UICollectionViewCompositionalLayout{ var largestDict: [Int: CGFloat] = [:] let columns = 3 override func layoutAttributesForElements(in rect: CGRect) -> [UICollectionViewLayoutAttributes]? { let attributes = super.layoutAttributesForElements(in: rect) if let attributes = att
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
2.6k
Sep ’22
Error building instrumentspackage with latest Xcode 13.3
I have a schema building an instruments package. After updating to Xcode 13.3 it fails with: BuildInstrumentsPackage ....instrdst... /Applications/Xcode.app/Contents/Developer/usr/bin/instrumentbuilder ... Assertion failed: (_columnToInterpolationExpressionMapping[column] == nil), function -[XRPackageModelingRuleSystem setColumnInterpolation:expression:definesLayoutScope:], file XRPackageModelingRuleSystem.m, line 422. Command BuildInstrumentsPackage failed with a nonzero exit code I don't have a clue what's going wrong. Any hint?
6
0
2.1k
Sep ’22
Reply to How to display [Link]?
What do you mean by displaying the links? (1) Is it showing them repeatedly in a row/column? (2) Or do you want the links to be interpolated in some standard text? I would recommend using an array of a custom type that can then each be converted into a Link view, instead of storing the actual view. Something like this: struct DisplayedLink { let title: String let url: URL } let links: [DisplayedLink] = [ ... ] Option 1: // any suitable layout container VStack { ForEach(links, id: .self) { link in Link(link.title, destination: link.url) } } Option 2: var linksText: AttributedString { var str = AttributedString(text comprised of the links' titles) for link in links { if let range = str.range(of: link.title) { str[range].link = link.url } } return str } // the linked text is coloured and tappable Text(linksText)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’22
Reply to TVOS 15 to Xcode 13 doesn’t pair
I have the same problem, but it started after I successfully paired an ATV (Model A2169, 4K, 2nd Gen) running 15.6 to MBP - I then upgraded the ATV to tvos 16, after which it refuses to pair (just like other posters report), but in my case, resetting the wifi on MBP does not fix the problem. Basically, I cannot pair ATV to MBP after tvos 16 update to the ATV. Any advice from Apple would be appreciated. (I tried a full reset on the ATV as well; MBP running XCode ) UPDATE: After running through the loop of reconnecting a dozen times and doing another full reset on the ATV, I tried double-clicking the ATV name in the left column, and for some unknown reason it then kicked-off the connection process and it seems to have succeeded. The remaining issue is that TVML app that runs fine in the Apple TV 4k (at 1080, 2nd Gen) simulator is crashing on the ATV running tvos 16.
Sep ’22
Reply to Network Extension capability missing in dev portal
It's between Developer and Enterprise (but closer to Developer) Interesting. if it is better (and easier) to buy the ADP. It’s definitely easier to join the developer programme; that puts you on a very well-trodden path. Whether it’s better is not something I can answer; it’s not my money after all (-: Regardless, if an education account gets different capabilities it’s clear that we need a new column in that Supported capabilities (iOS) doc. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: Entitlements Tags:
Sep ’22
Reply to Network Extension capability missing in dev portal
You definitely need the Networks Extensions capability to create… well… network extensions. If that’s not showing up under the Capabilities tab in Developer > Account > Certificates, Identifiers & Profiles > Identifiers > [your app ID] then you won’t be able to make progress on this task. Is the lack of this capability on the portal due to the education licence? Possibly. My go-to reference for this stuff is Developer Account Help > Reference > Supported capabilities (iOS). It doesn’t have a column for education accounts, so it’s not clear whether they fall under ADP (paid developers) or Apple Development (unpaid developer using a Personal Team). If you look through the capabilities that you do have access to, which column does it best match? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: Entitlements Tags:
Sep ’22
RealityKit Entity.loadAsync method leaks
I am building a simple SwiftUI Augmented Reality app that allows to display a 3D model from a list of models. ScrollView { LazyVGrid(columns: Array(repeating: item, count: 3), spacing: 3) { ForEach(items, id: .self) { item in ZStack { NavigationLink(destination: ItemDetailsView(item: item)) ) { ListItemCell(item: item, itemUUID: (item.uuid), imageURL: item.imageURL) } } .aspectRatio(contentMode: .fill) } } } .navigationTitle((list.listName)) When I tap on a ListItemCell, I load a UIViewRepresentable to display the AR model. func makeUIView(context: Context) -> ARView { // Create arView for VR with background color let arView = ARView(frame: .zero, cameraMode: .nonAR, automaticallyConfigureSession: false) arView.environment.background = .color(UIConfiguration.realityKit3DpreviewBackgroundColor) // Set world anchor let worldAnchor = AnchorEntity(world: .zero) arView.scene.addAnchor(worldAnchor) // Load 3D model loadAsset(at: worldAnchor, context: context) // Setup camera setupCamera(on: worldAnchor)
4
0
1.7k
Sep ’22
Reply to Xcode's Vim Mode - further development?
Xcode vim mode got me really excited, but it is just missing a few commands that I depend on: . (repeat, this is crucial) Ctrl+v (column/vertical select), and Shift+I (insert in all lines of a vertical select) And to a lesser degree I also use these often: Ctrl+a, Ctrl+x (increment, decrement) :w (save because it's annoying to mentally switch between to Cmd+s) :%s///g
Sep ’22
Reply to Xcode Full Vim Support
Xcode vim mode got me really excited when I discovered, but it is just missing a few commands that I depend on: . (repeat, this is crucial) Ctrl+v (column/vertical select), and Shift+I (insert in all lines of a vertical select) And to a lesser degree I also use these often: Ctrl+a, Ctrl+x (increment, decrement) :w (save because it's annoying to mentally switch between to Cmd+s) :%s///g
Sep ’22