- Open Xcode. File > New > Package
- Select Library > Next
- Choose the location that will be your root folder, enter the Package name > Create
- Rename the module created for you to something different than the Package and Product name.
- Under [Package name] > Sources > [Package Name] > [Package Name].swift, replace with this SwiftUI view for later use:
import SwiftUI
public struct TestLabel: View {
public init() {}