guillermomuntaner / Burritos

A collection of Swift Property Wrappers (formerly "Property Delegates")
MIT License
1.33k stars 43 forks source link

No such module 'Burritos' when installing via SPM #15

Open whoyawn opened 4 years ago

whoyawn commented 4 years ago

Version 11.2.1 (11B53) Device: iPhone 11 and iPhone Pro Max Simulator Version: 0.0.3 image

image

//
//  ContentView.swift

import Burritos // No such module 'Burritos'
import SwiftUI

struct ContentView: View {
    @LateInit test: String
    var body: some View {
        Text("Hello, World!")
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}

The module does not load and I cannot use any of the features.

whoyawn commented 4 years ago

Steps to reproduce:

  1. Create new project
  2. Install Burritos via SPM.
  3. Replace ContentView.swift with the one above.
dsabanin commented 4 years ago

You need to import the particular wrapper you're interested in, like import LateInit instead of import Burritos. I bet that confuses everyone.