Contents

hishnash/keywindow

This package provides a way to share values from the `key` window to all other parts of your application. (the `key` window in macOS/iPadOS is the window that currently responds to keyboard shortcuts).

Finding the correct property wrapper for your value type

Depending on the data type you are trying to share from your key window there are a few different property wrappers you can use to read the value:

| Type | Property Wrapper | Comment | |--------------------------------|:------------------------------:|------------------------------------------------------------------------------------------------------------------:| |"String" , 42 or MyStruct|@KeyWindowValue | For performance reasons it is best if these value types conform to equatable | |Binding<MyStruct> |@KeyWindowValueBinding | - | |Binding<Optional<MyStruct>> |@KeyWindowOptionalValueBinding| - | |Observable Object | @KeyWindowObservableObject | The Key in this case needs to conform to KeyWindowObservableObjectKey and provide a defaultValue |

Package Metadata

Repository: hishnash/keywindow

Default branch: main

README: README.md