Search results for

column

2,052 results found

Post

Replies

Boosts

Views

Activity

Reply to UITabBarController as secondary controller in UISplitViewController is producing 2 navigation bars in compact view
When using the column based split view controller, it presumes that clients want a navigation controller in each of its non-compact columns and will wrap a view controller in one of not provided. This is primarily so that collapsing (when it moves from multiple to single column) behaves deterministically and automatically. So what is happening is you're getting a tab bar controller wrapped in a navigation controller with additional navigation controllers inside – and thus double navigation bars. Realistically this may be a case where you want to create your own custom view controller container instead of using UISplitViewController, as I'm not sure how many of the edge cases you would hit might be resolved.
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’23
Reply to Random "duplicate column name" crashes using SwiftData
I had the exact same problem. On the first startup everything is ok, then on the second one it crashes. It seems SwiftData doesn't see the already existing column for one-to-many relationship. This, in turn, crashes the application because of the duplicated column. The solution that I found is to explicitly create the inverse relationship in the second model. So, in your case, changing your DeskPosition model to this: @Model final class DeskPosition { let id: UUID var title: String var desk: Desk? private var heightInCm: Double @Transient var height: DeskHeight { get { DeskHeight(value: heightInCm, unit: .centimeters).localized } set { heightInCm = newValue.converted(to: .centimeters).value } } init(id: UUID, height: DeskHeight, title: String) { self.id = id self.heightInCm = height.converted(to: .centimeters).value self.title = title self.height = height } }
Oct ’23
Random "duplicate column name" crashes using SwiftData
Hello everyone, I am experiencing a very weird issue. I have a simple relationship between 2 models, that occasionally starts crashing the app, with the following error: error: : Attempting recovery from error encountered during addPersistentStore: 0x282523c60 Error Domain=NSCocoaErrorDomain Code=134110 An error occurred during persistent store migration. UserInfo={sourceURL=file:///private/var/mobile/Containers/Shared/AppGroup/F8286D67-AC8C-4441-A151-13B5AAA509F3/Library/Application%20Support/default.store, reason=Cannot migrate store in-place: I/O error for database at /private/var/mobile/Containers/Shared/AppGroup/F8286D67-AC8C-4441-A151-13B5AAA509F3/Library/Application Support/default.store. SQLite error code:1, 'duplicate column name: Z1POSITIONS', destinationURL=file:///private/var/mobile/Containers/Shared/AppGroup/F8286D67-AC8C-4441-A151-13B5AAA509F3/Library/Application%20Support/default.store, NSUnderlyingError=0x2825c6700 {Error Domain=NSCocoaErrorDomain Code=134110 An error occurred during
1
0
1.1k
Oct ’23
Safari 17.0 does not support css-function as Safari 16.x
I’m talking about CSS-functions: https://w3c.github.io/csswg-drafts/css-values/#round-func) .example { --result: round(up, var(--number), 1); } In Safari 16.x css round didn’t work perfect.round(up, x, 1) did its job, if x wasn’t a “natural” number (all digits after the fraction mark 0). If it was, it resulted the next one! Now Safari 17.0 gives 0 for all numbers! !Update! Sorry, Safari 17 does round! But: not in code like that: :root { --result: round(up, var(--number), 1); Had a project, where this was used to define the number of columns and rows I wanted for an (mostly) quadratic layout. What’s working instead: grid-template-columns: repeat(round(up, sort(var(--items), 1), minimal(…); the former css used the :root-variant (grid-template-columns: repeat(var(--result) …). !Update 2! After some experiments I found: Safari 17 doesn’t like :root any more! (https://www.w3.org/TR/selectors-3/#root-pseudo) And: Safari doesn’t calc correct: `round(up,1,1)˚ is 2 — says Apple. YOU MUST NOT
1
0
1.7k
Oct ’23
Reply to NSXPC
Using a Dispatch semaphore to turn an asynchronous call into a synchronous call is generally considered bad form. That’s because the semaphore can’t propagate priority. That’s why we have -synchronousRemoteObjectProxyWithErrorHandler:. In the code serverProxy for synchronousRemoteObjectProxyWithErrorHandler access object The use of dispatch_async is to implement an asynchronous operation, and implement the corresponding timeout operation, to be precise, I should be required here to drop a serial column, the reason is because I found the line of sight NSXPC interface call timeout mode is like this. On the server side does not trigger the callback, the awareness is that the client side calls callbackWithInfo:info reply:^(bool action) and waits for the server side to call the action to implement the callback, but if the server side does not call the action all the time, That leads to more and more fds. I'm sure that if the NSXPC server side does not call the action callback function, the number of ports
Oct ’23
Problem: Array of String Data -> Array of Double (and Int) Data
This may be trivial to some but I just would like to know if you can copy an array to a new array and change the type of the data for each column of elements? I have loaded a file into an array as String data as I can't seem to do it any other way (i.e. as another type) I now want to convert some of the columns to a different type in possibly a new array. I have an array full of string data and I would like to convert it to Double, or some Int, data so that I can easily do my calculations. I would appreciate as much info as possible as I am relatively new to SwiftUI and Xcode. Many thanks, D Norris
1
0
454
Oct ’23
Table TableColumn Metal failed to load render pipeline Failed to find reflection in binary archives
I created a new project in xCode 15 on MacOS 14. This project only has a View with a Table that has two columns. When I call the view I get the following error several times: Metal failed to load render pipeline: pipeline=PL008BsovXmw_TprcA3Xhf sdk=23A322 Failed to find reflection in binary archives Here is the code: struct Freunde: Identifiable { var id: UUID = UUID() var firstName: String = var lastName: String = init(firstName: String, lastName: String) { self.firstName = firstName self.lastName = lastName } } struct ContentView: View { @State var sortOrder = [KeyPathComparator(Freunde.firstName)] @State public var selectedItems: Set = [] @State var myList: [Freunde] = [ Freunde(firstName: Klaus, lastName: Kirchhoff), Freunde(firstName: Patrik, lastName: Grot), Freunde(firstName: Johannes, lastName: Gottfried), Freunde(firstName: Daniel, lastName: Schaedla) ] var body: some View { VStack { Table(myList, selection: $selectedItems, sortOrder: $sortOrder) { TableColumn(Vorname, value: .firstName) T
7
0
1.9k
Oct ’23
Confusing TestFlight stats
I'm confused by the stats on the TestFlight builds screen. See below. There are more crashes than sessions. So the definition of session can't quite be what I thought. Does a session have to last more than a certain amount of time to be included? Do sessions that end in a crash not count as sessions? Do multiple invocations within a short period of time count as a single session? The number of sessions falls over time. I.e. once I have released a new version, the reported Sessions numbers for older versions slowly fall. Maybe as soon as a user has used version N+1, all their sessions for version N are removed from the stats? The invites column is clearly the same for every version, while it should have been slowly increasing. Is there any value in these numbers?
1
0
673
Oct ’23
Reply to SwiftUI Table with TextField becomes unresponsive as entries increase
Hi, did you solve this? My guess is ( I didn't need it yet so far, but know I have to start about this next week ), but can't you make all the fields a Text and do a check if it is a row/column that should be ( by check double click or so ) edited replace the row with TextField's and change it back to Text. I think that you to have .modify one of the other to match each other visually. Beside that the var is used in all the rows and the same and is not usable to edit or change one people item. But if you found a solution then.... let us/me know.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’23
Reply to errSecInternalComponent building locally with Xcode
In the My Certificates tab, that certificate and its associated private key both show login in the Keychain column. I have several other development identities in my keychain and others are working, it's just this one that isn't. The others also have both their certificates and private keys in the login keychain.
Topic: Code Signing SubTopic: General Tags:
Oct ’23
Reply to errSecInternalComponent building locally with Xcode
Do you think this means I didn't correctly import the key initially? It’s possible, but I’m leaning towards the theory that something got borked in the interim. Or that the key was revoked and I need to check with the account holder? I doubt it was revoked. Revoking Developer ID certificates is tricky and, even if were revoked, Keychain Access wouldn’t get that error trying to export it. I suspect that your keychain is just broken in some way. However, I’ve one more test to run before I suggest remedial action: In Keychain Access, switch to My Certificates and find your Developer ID identity. Click the chevron to disclose the private key. Look at the Keychain column for both items. Are both items in the same keychain? Is it your login keychain? Or something else? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: General Tags:
Oct ’23
Reply to Xcode 14.3 - Multiple commands produce swiftsourceinfo
Here's how I fixed it... Select your Extension target and go to Build Settings Search for module and look for Packaging -> Product Module Name. You'll probably see that the Resolved column is showing the same name as your main target. Type a unique name in the middle column (the column is titled WidgetsExtension or whatever your extension target is called) You should see that the Resolved column now shows the unique name you entered. It should hopefully build now.
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’23