Coordinator icon indicating copy to clipboard operation
Coordinator copied to clipboard

Type '() -> _TargetPlatformConditionalModifiable<Root, _SwiftUI_TargetPlatform.macOS>' cannot conform to 'View'

Open quocleviet79 opened this issue 2 years ago • 3 comments

@vmanot Please help me check on 'maste' branch XCode Version 14.1 (14B47b) Screen Shot 2023-09-01 at 13 50 58

quocleviet79 avatar Sep 01 '23 06:09 quocleviet79

@quocleviet79 can you try upgrading to Xcode 14.3 and tell me if this still recurs?

vmanot avatar Sep 01 '23 23:09 vmanot

I encountered the identical error while utilizing Xcode version 14.2.

SwiftUIX/Sources/Intramodular/Miscellaneous/_SwiftUI_TargetPlatform.swift:147:12: type '() -> _TargetPlatformConditionalModifiable<Root, _SwiftUI_TargetPlatform.macOS>' cannot conform to 'View'

public func controlActiveState(_ state: _SwiftUI_TargetPlatform.macOS._ControlActiveState) -> _TargetPlatformConditionalModifiable<some View, Platform> {

^

Kovalik98 avatar Oct 04 '23 22:10 Kovalik98

@Kovalik98 it seems like it may be fixed on 14.3 - can you try updating to that and confirm?

vmanot avatar Oct 04 '23 22:10 vmanot

Closing this due to inactivity, feel free to reopen if this persists with the latest release.

vmanot avatar Aug 04 '24 06:08 vmanot