Merge branch ‘master’ of github.com:eugenebokhan/settings-view-controller Conflicts:Sources/SettingsViewController/SettingCell/FloatSettingCell.swift
Merge branch ‘master’ of github.com:eugenebokhan/settings-view-controller
Add settings to your app with a few lines of code.
SettingsViewController is capable to handle Bool, Float and Selection types of settings.
Bool
Float
Selection
let settingsViewController = SettingsViewController(settings: [ BoolSetting(name: "Enable Postprocessing", initialValue: true) { isPostprocessingEnabled in self.enablePostprocessing(isPostprocessingEnabled) }, SelectionSetting(name: "Scale Type", initialValue: 0, segments: ["Billinear", "Lanczos"]) { scaleType in self.setScaleType(scaleType) }, FloatSetting(name: "Brightness", initialValue: 0, min: -1, max: 1) { brightness in self.setBrightness(brightness) }, FloatSetting(name: "Saturation", initialValue: 0, min: -1, max: 1) { saturation in self.setSaturation(saturation) }, ])
The project is inspired by and based on DebugMenu‘s options implementation.
MIT
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
SettingsViewController
Add settings to your app with a few lines of code.
Requirements
Usage
SettingsViewController is capable to handle
Bool
,Float
andSelection
types of settings.References
The project is inspired by and based on DebugMenu‘s options implementation.
License
MIT