Post

Replies

Boosts

Views

Activity

Comment on Optimal Way of Getting Screen Resolution Using SwiftUI
Yes, GeometeryReader and NSWindow (MacOS) are better for getting the window's resolution. But I am specifically looking for the resolution of the entire usable screen that is currently available to me on MacOS. If I use GeometeryReader or NSWindow .bounds I will only get the current window-in-use's resolution. Anyway to get the entire display screen's resolution in SwiftUI? If there is no recommended method in SwiftUI then is it all right to continue using NSScreen.frame for the same?
1w