Post

Replies

Boosts

Views

Activity

Using iPadOS 18 with Mac running macOS 14.5
I have a Mac Mini M1 running macOS 14.5 Sonoma. Until recently I was running iPadOS 17 on my iPad, and things worked just fine. I had the iPad setup so that it displayed its own stuff, but allowed my to operate my mouse on the iPad screen by moving past the left hand side of my monitor. This combined with copy and paste between iPadOS and macOS gave me a great workflow. A couple of days ago I installed the dev beta of iPadOS 18 on my iPad, and seem to have lost access to all of the functionality described in the first paragraph. Can anyone advise of what I need to do to get it back, or is it just a case of waiting for Apple to re-establish the missing functionality in newer versions of the beta?
0
0
91
1w
How to pass detected key strokes on to a scroll view in order to scroll it
I have a SwiftUI app which has a grid which is made up of GridRows within a Grid. These are, in turn, held in a ScrollView within a ScrollViewReader. Focus is always on a filter text box which is used to filter the grid display. All this works just fine. I'm also using a hidden button to monitor cursor up and cursor down keystrokes. These keystrokes, among other things, should instigate scrolling of the ScrollView. The problem is that I cannot work out a way to trigger the scrolling from the change due to the keys. I'm altering this @State private var scrollRequest: Int = 0 to either -1 or +1 if I need a scroll action. I'm using this code to try to pick up the change... .onChange(of: scrollRequest) { newScrollRequest in if newScrollRequest != 0 { scrollRequest = 0 let currentScrollPosition = geometry.frame(in: .global).minY let scrollOffset = CGFloat(newScrollRequest) * TextUtils.textHeight(text: "XXXX", fontName: "Monaco", size: 14) let newScrollPosition = currentScrollPosition + CGFloat(scrollOffset) scrollView.scrollTo(newScrollPosition, anchor: .top) } The code is being run when scrollRequest is changed but the desired scroll on my ScrollView is not happening. Any ideas, anyone?
0
0
187
Nov ’23
Has anyone used Copilot for Xcode?
I'm trying to get Copilot for Xcode https://github.com/intitni/CopilotForXcode running in Xcode. It's all installed as per the instructions, yet when I try to use it, it complains about a missing API key. I've obtained a new API key from openai as instructed but I do not know how to get it into Copilot for Xcode. Any clues, anyone? I should point out that I have an existing subscription from Github Copilot which I use in Cursor, a rather neat VS Code clone!
1
1
2.8k
Nov ’23