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

Skip to content

Static method 'buildExpression' requires that 'Giffy' conform to 'View' #1

@Misaka-Tang

Description

@Misaka-Tang

Hi I first use this package in xcode, but I am developing macOS, once I write such codes

var body: some View {
      VStack{
        Button("open floating widget"){
          showFloatingView.toggle()
        }
      }.frame(width: 250, height: 250)
        .background(content: {
          Rectangle()
            .fill(.blue.gradient)
            .ignoresSafeArea()
        })
        .buttonStyle(.bordered)
        .buttonBorderShape(.roundedRectangle)
        .floatingView(position: .zero, show: $showFloatingView){
          GeometryReader{
            let size = $0.size
            Giffy("images/eat drumstick")
          }
        }
    }

it give me err in the issue title, how to fix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions