Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Not compiling on ios due to use of NSColor #36

Open
@SoylentGraham

Description

Seems like all the backgroundColor:NSColor variables can be replaced with SwiftUI.Color and then at the end a cross platform alias

#if os(macOS)
 import AppKit
 typealias UXTextView = NSTextView
 typealias UXTextViewDelegate = NSTextViewDelegate
 typealias UColor = NSColor
#else
 import UIKit
 typealias UXTextView = UITextView
 typealias UXTextViewDelegate = UITextViewDelegate
 typealias UColor = UIColor
#endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /