danielsaidi / RichTextKit

RichTextKit is a Swift SDK that helps you use rich text in Swift and SwiftUI.
MIT License
950 stars 126 forks source link

visionOS error #77

Closed ropellanda closed 9 months ago

ropellanda commented 1 year ago

Hi, i'm trying to use this package on the latest Xcode 15 beta to build a visionOS app. Other platforms work fine, but when I try compiling on visionOS, the following error appears: Cannot find 'RichTextEditor' in scope

danielsaidi commented 1 year ago

Hi @ropellanda

This is not yet supported, since visionOS support requires Xcode 15.

I will add support for visionOS once Xcode 15 is out, but my guess is many APIs will be missing.

ropellanda commented 1 year ago

Thank you!

ropellanda commented 1 year ago

Hi again, now that the Xcode 15 RC has been released, could you perhaps add visionOS support?

danielsaidi commented 1 year ago

I'll take a look at it 👍

ropellanda commented 1 year ago

Thanks!

ropellanda commented 1 year ago

Hi again, did you ever get around to adding support for visionOS?

danielsaidi commented 1 year ago

Hi again @ropellanda

Not yet, since I'm still working a lot in Xcode 14.

destari commented 10 months ago

I also would be incredibly happy and thankful for visionOS support :) This is the absolute best option out there!

danielsaidi commented 10 months ago

@destari Thank you for those kind words! :)

visionOS support was added a while back. Can you try and see if it works?

destari commented 10 months ago

I'm using 0.9.8 - I get this error:

Cannot find type 'ColorRepresentable' in scope

About 35 of those. However, I noticed that if I add this somewhere else in my app, it seems to clear those up:

#if macOS
import AppKit

/**
 This typealias bridges platform-specific colors to simplify
 multi-platform support.
 */
public typealias ColorRepresentable = NSColor
#endif

#if iOS || os(tvOS) || os(watchOS) || os(visionOS)
import UIKit

/**
 This typealias bridges platform-specific colors to simplify
 multi-platform support.
 */
public typealias ColorRepresentable = UIColor
#endif

Which I stole from your code, so I suspect somehow it is not being included in the build?