Tested on macOS Sonoma Developer beta 2 (23A5276g)
- Download openssh-portable source code, install
libcrypto,libfido2; - Configure openssh-portable build system by
./configure # [options].
| function run() { | |
| const MediaRemote = $.NSBundle.bundleWithPath('/System/Library/PrivateFrameworks/MediaRemote.framework/'); | |
| MediaRemote.load | |
| const MRNowPlayingRequest = $.NSClassFromString('MRNowPlayingRequest'); | |
| const appName = MRNowPlayingRequest.localNowPlayingPlayerPath.client.displayName; | |
| const infoDict = MRNowPlayingRequest.localNowPlayingItem.nowPlayingInfo; | |
| const title = infoDict.valueForKey('kMRMediaRemoteNowPlayingInfoTitle'); |
| extension View { | |
| /// Adds a double click handler this view (macOS only) | |
| /// | |
| /// Example | |
| /// ``` | |
| /// Text("Hello") | |
| /// .onDoubleClick { print("Double click detected") } | |
| /// ``` | |
| /// - Parameters: | |
| /// - handler: Block invoked when a double click is detected |
Since monterey update does not allow us to use Xcode previous than 13, let's show how to "install previous SDKs"
Swift toolchains, from https://swift.org/download/
Previous Xcode.xip, from the https://developer.apple.com
| /** | |
| * @author github.com/luncliff ([email protected]) | |
| * @brief Personal experiment with libdispatch in Apple platform. | |
| * | |
| * @note clang++ -std=c++2a -stdlib=libc++ -fcoroutines-ts | |
| * @see https://developer.apple.com/library/archive/documentation/General/Conceptual/ConcurrencyProgrammingGuide/Introduction/Introduction.html | |
| * @see https://apple.github.io/swift-corelibs-libdispatch/tutorial/ | |
| */ | |
| #define CATCH_CONFIG_RUNNER | |
| #define CATCH_CONFIG_FAST_COMPILE |
This step-by-step video tutorial will guide you through the procedure of forcing RGB color output on your M1 Mac.
Here is the direct link to the video tutorial: https://www.youtube.com/watch?v=Z1EqH3fd0V4
The video also has Closed Captions (Subtitles) that you can enable, to make it easier to follow if needed.
On Mac, SwiftUI's .onHover closure is not always called on mouse exit, particularly with high cursor velocity. A grid of targets or with finer target shapes will often have multiple targets falsely active after the mouse has moved on.
It is easy to run back to AppKit's safety. Below is a SwiftUI-like modifier for reliable mouse-tracking. You can easily adapt it for other mouse tracking needs.
import SwiftUI| // | |
| // ExampleWindowReaderApp.swift | |
| // Shared | |
| // | |
| // Created by Matthaus Woolard on 21/12/2020. | |
| // | |
| import SwiftUI | |
| @main |
If you have issues with installing numpy related packages on Big sur, these steps helped me: 1- Uninstall pyhon installed with homebrew and use python-installer. This resolves numpy issue. And it's better to install 1.18 or just anything bellow 1.19.
brew uninstall python
And install it from: https://www.python.org/downloads/
Then:
pip install numpy==1.18