I’m interested in the Value “safeAreaInsets.top” from NSScreen (Apple docs). I already asked ChatGPT for code, but it does not work and I don’t understand the whole Declare stuff.
Is it possible to get this value without using plugins?
If found a different solution. Maybe not perfect, but it works in my case:
Public Function GetNotchSize() As Integer
Var size As Integer = DesktopDisplay.DisplayAt(0).AvailableTop - DesktopDisplay.DisplayAt(0).Top
If size > 25 Then
Return size
Else
Return 0
End
End Function