mirror of
https://github.com/pepaskopec-blip/Graduately.git
synced 2026-10-27 15:14:35 +00:00
Add a native SwiftUI macOS app that shares the iOS player.
The GTK Mac build stays; CI now also publishes maturita-macos-swift. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
11eb14e136
commit
58e3a75f21
33 changed files with 1415 additions and 128 deletions
38
macos/Maturita/Platform.swift
Normal file
38
macos/Maturita/Platform.swift
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
#if os(macOS)
|
||||
import AppKit
|
||||
import SwiftUI
|
||||
|
||||
extension NSColor {
|
||||
static var tertiarySystemFill: NSColor {
|
||||
NSColor.quaternaryLabelColor.withAlphaComponent(0.16)
|
||||
}
|
||||
|
||||
static var secondarySystemGroupedBackground: NSColor {
|
||||
.controlBackgroundColor
|
||||
}
|
||||
|
||||
static var separator: NSColor { .separatorColor }
|
||||
}
|
||||
|
||||
enum TextInputAutocapitalization {
|
||||
case never
|
||||
}
|
||||
|
||||
enum UIKeyboardType {
|
||||
case decimalPad
|
||||
}
|
||||
|
||||
enum MacNavBarTitleMode {
|
||||
case large
|
||||
case inline
|
||||
}
|
||||
|
||||
extension View {
|
||||
func textInputAutocapitalization(_ style: TextInputAutocapitalization) -> some View { self }
|
||||
|
||||
func keyboardType(_ type: UIKeyboardType) -> some View { self }
|
||||
|
||||
func navigationBarTitleDisplayMode(_ mode: MacNavBarTitleMode) -> some View { self }
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue