mirror of
https://github.com/sudosylabs/vnidrop.git
synced 2026-08-05 10:29:58 +02:00
feat(apple): native SwiftUI app for iOS and macOS
Add a native SwiftUI VniDrop app (Send/Receive/Settings) talking to the Rust core via generated UniFFI Swift bindings, plus the uniffi-bindgen helper crate. iOS uses a TabView, macOS a NavigationSplitView sidebar.
This commit is contained in:
11
apple/VniDrop/UI/Theme/Typography.swift
Normal file
11
apple/VniDrop/UI/Theme/Typography.swift
Normal file
@@ -0,0 +1,11 @@
|
||||
import SwiftUI
|
||||
|
||||
/// Semantic type scale mapped from the Material typography styles the Compose UI
|
||||
/// uses, so screens reference the same names during the port.
|
||||
enum VniType {
|
||||
static let titleLarge = Font.system(size: 22, weight: .semibold)
|
||||
static let bodyLarge = Font.system(size: 16)
|
||||
static let bodyMedium = Font.system(size: 14)
|
||||
static let bodySmall = Font.system(size: 12)
|
||||
static let labelSmall = Font.system(size: 11, weight: .medium)
|
||||
}
|
||||
Reference in New Issue
Block a user