Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Compilation error on macOS #275

@pujiyong

Description

@pujiyong

PopupView.swift, line 527

...
@ViewBuilder
    func sheetWithDragGesture() -> some View {
#if !os(tvOS)
        switch type {
        case .scroll:
            sheet() // Drag to dismiss is handled inside
        default:
            let dragGe`
        ...

When compiling for macOS platform, the switch case case .scroll: on line 527 causes a compilation error :

Type 'Popup.PopupType' has no member 'scroll'

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