Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ protocol AccessibilityConfigurationModifier {
}

extension AccessibilityConfigurationModifier where Configuration == Never {
var configuration: Configuration { openSwiftUIBaseClassAbstractMethod() }
var configuration: Configuration { _openSwiftUIBaseClassAbstractMethod() }
}
4 changes: 2 additions & 2 deletions Sources/OpenSwiftUI/Core/Render/DisplayLink.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ final class DisplayLink: NSObject {

#if os(iOS)
init(host: AnyUIHostingView, window: UIWindow) {
openSwiftUIUnimplementedFailure()
_openSwiftUIUnimplementedFailure()
}
#elseif os(macOS)
init(host: AnyUIHostingView, window: NSWindow) {
openSwiftUIUnimplementedFailure()
_openSwiftUIUnimplementedFailure()
}
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ class FocusStoreLocation<A: Hashable>: AnyLocation<A>, @unchecked Sendable {
}

override func get() -> A {
openSwiftUIUnimplementedFailure()
_openSwiftUIUnimplementedFailure()
}

override func set(_ value: A, transaction: Transaction) {
openSwiftUIUnimplementedFailure()
_openSwiftUIUnimplementedFailure()
}

typealias Value = A

override init() { openSwiftUIBaseClassAbstractMethod() }
override init() { _openSwiftUIBaseClassAbstractMethod() }

var store: FocusStore
weak var host: GraphHost?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public struct FocusedValues {

/// Reads and writes values associated with a given focused value key.
public subscript<Key>(key: Key.Type) -> Key.Value? where Key: FocusedValueKey {
openSwiftUIUnimplementedFailure()
_openSwiftUIUnimplementedFailure()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ extension _UIHostingView: ViewRendererHost {
}

package func updateScrollableContainerSize() {
// openSwiftUIUnimplementedFailure()
// _openSwiftUIUnimplementedFailure()
}

var shouldDisableUIKitAnimations: Bool {
Expand Down Expand Up @@ -684,7 +684,7 @@ extension _UIHostingView: ViewRendererHost {
}

package func rootTransform() -> ViewTransform {
openSwiftUIUnimplementedWarning()
_openSwiftUIUnimplementedWarning()
return ViewTransform()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ final class NSViewPlatformViewDefinition: PlatformViewDefinition, @unchecked Sen
}

override static func makeLayerView(type: CALayer.Type, kind: PlatformViewDefinition.ViewKind) -> AnyObject {
openSwiftUIUnimplementedFailure()
_openSwiftUIUnimplementedFailure()
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final class UIViewPlatformViewDefinition: PlatformViewDefinition, @unchecked Sen
}

override static func makeLayerView(type: CALayer.Type, kind: PlatformViewDefinition.ViewKind) -> AnyObject {
openSwiftUIUnimplementedFailure()
_openSwiftUIUnimplementedFailure()
}

private static func initView(_ view: UIView, kind: PlatformViewDefinition.ViewKind) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ extension PlatformViewRepresentable {

nonisolated static func _makeView(view: _GraphValue<Self>, inputs: _ViewInputs) -> _ViewOutputs {
// TODO
openSwiftUIUnimplementedFailure()
_openSwiftUIUnimplementedFailure()
}

var body: Never {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ extension UIViewControllerRepresentable {
public static func dismantleUIViewController(_ uiViewController: UIViewControllerType, coordinator: Coordinator) {}

nonisolated public static func _makeView(view: _GraphValue<Self>, inputs: _ViewInputs) -> _ViewOutputs {
openSwiftUIUnimplementedFailure()
_openSwiftUIUnimplementedFailure()
}

nonisolated public static func _makeViewList(view: _GraphValue<Self>, inputs: _ViewListInputs) -> _ViewListOutputs {
Expand Down
2 changes: 1 addition & 1 deletion Sources/OpenSwiftUI/Layout/ViewThatFits.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public struct _SizeFittingRoot: _VariadicView.UnaryViewRoot {
init(axes: Axis.Set) { self.axes = axes }

nonisolated public static func _makeView(root: _GraphValue<Self>, inputs: _ViewInputs, body: (_Graph, _ViewInputs) -> _ViewListOutputs) -> _ViewOutputs {
openSwiftUIUnimplementedFailure()
_openSwiftUIUnimplementedFailure()
}

public typealias Body = Never
Expand Down
2 changes: 1 addition & 1 deletion Sources/OpenSwiftUI/Scene/WindowGroup.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public struct WindowGroup<Content>: Scene where Content: View {

// FIXME
public var body: some Scene {
openSwiftUIBaseClassAbstractMethod()
_openSwiftUIBaseClassAbstractMethod()
}

var title: Text?
Expand Down
2 changes: 1 addition & 1 deletion Sources/OpenSwiftUI/Test/TestApp+Test.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ extension _TestApp {
exit(0)
}
#else
openSwiftUIUnimplementedFailure()
_openSwiftUIUnimplementedFailure()
#endif
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/OpenSwiftUI/Test/TestApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ extension _TestApp {
#endif
Color.Resolved.legacyInterpolation = true
let rootView = RootView()
openSwiftUIUnimplementedFailure()
_openSwiftUIUnimplementedFailure()
}
}
2 changes: 1 addition & 1 deletion Sources/OpenSwiftUI/Util/OpenSwiftUIGlue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ final public class OpenSwiftUIGlue2: CoreGlue2 {
}

override public final func linkURL(_ parameters: LinkURLParameters) -> URL? {
openSwiftUIUnimplementedFailure()
_openSwiftUIUnimplementedFailure()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public struct PlainButtonStyle: PrimitiveButtonStyle {
public func makeBody(configuration: Configuration) -> some View {
// Button(configuration)
// .buttonStyle(buttonStyleRepresentation)
openSwiftUIBaseClassAbstractMethod()
_openSwiftUIBaseClassAbstractMethod()
}
}

Expand All @@ -35,6 +35,6 @@ private struct PlainButtonStyleBase: ButtonStyle {
// configuration.label
// }
// .opacity(isEnabled ? (configuration.isPressed ? 0.75 : 1.0) : 0.5)
openSwiftUIBaseClassAbstractMethod()
_openSwiftUIBaseClassAbstractMethod()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ protocol SliderStyle {

private class AnyStyleBox {
func body(configuration _: Slider<SliderStyleLabel, SliderStyleValueLabel>) -> AnyView {
openSwiftUIBaseClassAbstractMethod()
_openSwiftUIBaseClassAbstractMethod()
}
}

Expand Down
4 changes: 2 additions & 2 deletions Sources/OpenSwiftUI/View/Image/AsyncImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ private func downloadURL(_ url: URL) async throws -> TaskResult {
orientation: cgImageSource.orientation(at: 0)
)
#else
openSwiftUIUnimplementedFailure()
_openSwiftUIUnimplementedFailure()
#endif
}

Expand Down Expand Up @@ -539,6 +539,6 @@ private func updateTaskResult(_ result: TaskResult, config: TaskConfig) {
}
}
#else
openSwiftUIUnimplementedFailure()
_openSwiftUIUnimplementedFailure()
#endif
}
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ private class BoxVTableBase {
ptr _: UnsafeMutableRawPointer,
from _: UnsafeMutableRawPointer
) {
openSwiftUIBaseClassAbstractMethod()
_openSwiftUIBaseClassAbstractMethod()
}

class func deinitialize(ptr _: UnsafeMutableRawPointer) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,11 @@ open class _UnsafeHeterogeneousBuffer_VTable {
}

open class func moveInitialize(elt: _UnsafeHeterogeneousBuffer_Element, from: _UnsafeHeterogeneousBuffer_Element) {
openSwiftUIBaseClassAbstractMethod()
_openSwiftUIBaseClassAbstractMethod()
}

open class func deinitialize(elt: _UnsafeHeterogeneousBuffer_Element) {
openSwiftUIBaseClassAbstractMethod()
_openSwiftUIBaseClassAbstractMethod()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ package struct CachedEnvironment {
role: ShapeRole,
mode: Attribute<_ShapeStyle_ResolverMode>?
) -> Attribute<_ShapeStyle_Pack> {
openSwiftUIUnimplementedFailure()
_openSwiftUIUnimplementedFailure()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ extension EnvironmentValues {
@available(watchOS, unavailable)
@available(visionOS, unavailable)
public var _useVibrantStyling: Bool {
get { openSwiftUIUnimplementedFailure() }
set { openSwiftUIUnimplementedFailure() }
get { _openSwiftUIUnimplementedFailure() }
set { _openSwiftUIUnimplementedFailure() }
}

@available(iOS, unavailable)
@available(tvOS, unavailable)
@available(watchOS, unavailable)
package var reduceDesktopTinting: Bool {
get { openSwiftUIUnimplementedFailure() }
set { openSwiftUIUnimplementedFailure() }
get { _openSwiftUIUnimplementedFailure() }
set { _openSwiftUIUnimplementedFailure() }
}
}
12 changes: 6 additions & 6 deletions Sources/OpenSwiftUICore/Data/Location.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,23 @@ extension AnyLocationBase: Sendable {}
open class AnyLocation<Value>: AnyLocationBase, @unchecked Sendable {
@_spi(ForOpenSwiftUIOnly)
open var wasRead: Bool {
get { openSwiftUIBaseClassAbstractMethod() }
set { openSwiftUIBaseClassAbstractMethod() }
get { _openSwiftUIBaseClassAbstractMethod() }
set { _openSwiftUIBaseClassAbstractMethod() }
}

@_spi(ForOpenSwiftUIOnly)
open func get() -> Value { openSwiftUIBaseClassAbstractMethod() }
open func get() -> Value { _openSwiftUIBaseClassAbstractMethod() }

@_spi(ForOpenSwiftUIOnly)
open func set(_ value: Value, transaction: Transaction) { openSwiftUIBaseClassAbstractMethod() }
open func set(_ value: Value, transaction: Transaction) { _openSwiftUIBaseClassAbstractMethod() }

@_spi(ForOpenSwiftUIOnly)
open func projecting<P>(_ projection: P) -> AnyLocation<P.Projected> where Value == P.Base, P: Projection {
openSwiftUIBaseClassAbstractMethod()
_openSwiftUIBaseClassAbstractMethod()
}

@_spi(ForOpenSwiftUIOnly)
open func update() -> (Value, Bool) { openSwiftUIBaseClassAbstractMethod() }
open func update() -> (Value, Bool) { _openSwiftUIBaseClassAbstractMethod() }

@_spi(ForOpenSwiftUIOnly)
open func isEqual(to other: AnyLocation<Value>) -> Bool { self === other }
Expand Down
10 changes: 5 additions & 5 deletions Sources/OpenSwiftUICore/Data/Preference/PreferenceList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ private class PreferenceNode: CustomStringConvertible {
return nil
}

func find(from _: PreferenceNode?) -> PreferenceNode? { openSwiftUIBaseClassAbstractMethod() }
func combine(from _: PreferenceNode?, next _: PreferenceNode?) -> PreferenceNode? { openSwiftUIBaseClassAbstractMethod() }
func copy(next _: PreferenceNode?) -> PreferenceNode { openSwiftUIBaseClassAbstractMethod() }
class var _includesRemovedValues: Bool { openSwiftUIBaseClassAbstractMethod() }
var description: String { openSwiftUIBaseClassAbstractMethod() }
func find(from _: PreferenceNode?) -> PreferenceNode? { _openSwiftUIBaseClassAbstractMethod() }
func combine(from _: PreferenceNode?, next _: PreferenceNode?) -> PreferenceNode? { _openSwiftUIBaseClassAbstractMethod() }
func copy(next _: PreferenceNode?) -> PreferenceNode { _openSwiftUIBaseClassAbstractMethod() }
class var _includesRemovedValues: Bool { _openSwiftUIBaseClassAbstractMethod() }
var description: String { _openSwiftUIBaseClassAbstractMethod() }
}

// MARK: - PreferenceNode
Expand Down
8 changes: 4 additions & 4 deletions Sources/OpenSwiftUICore/Data/PropertyList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ extension PropertyList {

/// A textual representation of the element.
@usableFromInline
package var description: String { openSwiftUIBaseClassAbstractMethod() }
package var description: String { _openSwiftUIBaseClassAbstractMethod() }

/// Checks if this element matches another element, ignoring specified types.
///
Expand All @@ -909,7 +909,7 @@ extension PropertyList {
/// - ignoredTypes: Types to ignore during comparison.
/// - Returns: `true` if the elements match, otherwise `false`.
func matches(_ other: Element, ignoredTypes: inout [ObjectIdentifier]) -> Bool {
openSwiftUIBaseClassAbstractMethod()
_openSwiftUIBaseClassAbstractMethod()
}

/// Creates a copy of this element with the specified before and after elements.
Expand All @@ -919,15 +919,15 @@ extension PropertyList {
/// - after: The element to link after this one.
/// - Returns: A new element with the same value but different links.
func copy(before: Element?, after: Element?) -> Element {
openSwiftUIBaseClassAbstractMethod()
_openSwiftUIBaseClassAbstractMethod()
}

/// Extracts a value of the specified type from this element.
///
/// - Parameter type: The type to extract the value as.
/// - Returns: The extracted value.
func value<T>(as type: T.Type) -> T {
openSwiftUIBaseClassAbstractMethod()
_openSwiftUIBaseClassAbstractMethod()
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions Sources/OpenSwiftUICore/Data/State/StoredLocation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ package class StoredLocationBase<Value>: AnyLocation<Value>, Location, @unchecke
// MARK: - abstract method

fileprivate var isUpdating: Bool {
openSwiftUIBaseClassAbstractMethod()
_openSwiftUIBaseClassAbstractMethod()
}

fileprivate func commit(transaction: Transaction, mutation: BeginUpdate) {
openSwiftUIBaseClassAbstractMethod()
_openSwiftUIBaseClassAbstractMethod()
}

fileprivate func notifyObservers() {
openSwiftUIBaseClassAbstractMethod()
_openSwiftUIBaseClassAbstractMethod()
}

// MARK: - AnyLocation
Expand Down
6 changes: 3 additions & 3 deletions Sources/OpenSwiftUICore/Event/Event/EventBindingBridge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ open class EventBindingBridge {
_ events: [EventID: any EventType],
source: any EventBindingSource
) -> Set<EventID> {
openSwiftUIUnimplementedFailure()
_openSwiftUIUnimplementedFailure()
}

open func reset(
eventSource: any EventBindingSource,
resetForwardedEventDispatchers: Bool = false
) {
openSwiftUIUnimplementedFailure()
_openSwiftUIUnimplementedFailure()
}

private func resetEvent() {
openSwiftUIUnimplementedFailure()
_openSwiftUIUnimplementedFailure()
}

open func setInheritedPhase(_ phase: _GestureInputs.InheritedPhase) {
Expand Down
Loading