This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| struct ContentView: View { | |
| private let columns = [ | |
| GridItem(.flexible()), | |
| GridItem(.flexible()), | |
| GridItem(.flexible()) | |
| ] | |
| @State private var visibleIndex: Int? = nil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NSButton *closeButton = [self standardWindowButton:NSWindowCloseButton]; | |
| NSView *themeFrame = [closeButton superview]; | |
| CGFloat buttonYOrigin = NSMaxY(themeFrame.frame)-34; | |
| //Alter the button frames | |
| NSRect closeFrame = closeButton.frame; | |
| closeFrame.origin.y = buttonYOrigin; | |
| closeButton.frame = closeFrame; |