-
-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Labels
appearanceInconsistencies between the expected appearance of components in Jetpack Compose vs. SwiftUIInconsistencies between the expected appearance of components in Jetpack Compose vs. SwiftUIgood first issueGood for newcomersGood for newcomers
Description
https://developer.apple.com/documentation/uikit/uicolor/systembackground
In SwiftUI, you can use UIColor.systemBackground with Color(.systemBackground), but that doesn't work in SkipUI, where UIColor is just a basic data model with no built-in static colors.
skip-ui/Sources/SkipUI/SkipUI/UIKit/UIColor.swift
Lines 1 to 24 in 616a3e8
| // Copyright 2023–2025 Skip | |
| // SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception | |
| #if !SKIP_BRIDGE | |
| #if !SKIP | |
| import struct CoreGraphics.CGFloat | |
| #endif | |
| // SKIP @bridge | |
| public final class UIColor { | |
| let red: CGFloat | |
| let green: CGFloat | |
| let blue: CGFloat | |
| let alpha: CGFloat | |
| // SKIP @bridge | |
| public init(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat) { | |
| self.red = red | |
| self.green = green | |
| self.blue = blue | |
| self.alpha = alpha | |
| } | |
| } | |
| #endif |
Metadata
Metadata
Assignees
Labels
appearanceInconsistencies between the expected appearance of components in Jetpack Compose vs. SwiftUIInconsistencies between the expected appearance of components in Jetpack Compose vs. SwiftUIgood first issueGood for newcomersGood for newcomers