NSTextView
has this handy method to make scrollable NSTextView NSTextView.scrollableTextView()
. The solution is to get to the responder outside enclosing NSScrollView
, in my case it is the SwiftUI hosting view
…
Use @ViewBuilder
to build dynamic content for our HUD. For blur effect, here I use NSVisualEffectView
, but we can use .blur
modifier also
struct HUD<Content>: View where Content: View {…
@propertyWrapper
struct UserDefault<Value> {
let key: String
let defaultValue: Value
let container: UserDefaults = .standard
var wrappedValue: Value {…
Use NSSharingService.sharingServices(forItems:)
with an array of one empty string gives a list of sharing items. There we show image
and title
of each menu item
import SwiftUI
import AppKit
import EasySwiftUIextension NSSharingService {
static func submenu(text: String) -> some View {…