Home

Awesome

LoremSwiftify

Features


See example project

Example


Then use StructName.lorem() or ClassName.lorem() or EnumName.lorem(). Basically .lorem() everywhere :)

extension ContentView {
    @LoremSwiftify
    struct Display {
        let developers: [Developer]

        @LoremSwiftify
        struct Developer: Identifiable {
            let id: String = UUID().uuidString

            @Lorem(.string(.name))
            let name: String

            @Lorem(.string(.email))
            let email: String

            @Lorem(.string(.phoneNumber))
            let phoneNumber: String

            @Lorem(.url(.image))
            let imageURL: URL

            @Lorem(.url(.website))
            let profileURL: URL
        }
    }
}

#Preview {
    ContentView(display: .lorem())
}