LavaUI docs GitHub

struct Filter

Swift

struct Filter

A named group of file types the picker can restrict itself to, such as "Images" with ["png", "jpg"].

Sources/LavaUI/FileDialog.swift:26

Constructors

init(name: String, extensions: [String])

Creates a filter.

Sources/LavaUI/FileDialog.swift:33

Properties

var extensions: [String]

Extensions without the dot, such as "png".

Sources/LavaUI/FileDialog.swift:30

var name: String

The group's name as the picker shows it.

Sources/LavaUI/FileDialog.swift:28