2019-06-14 00:53:17 +00:00
// A d v a n c e d P r e f s V i e w . s w i f t
// T u s k e r
//
// C r e a t e d b y S h a d o w f a c t s o n 6 / 1 3 / 1 9 .
// C o p y r i g h t © 2 0 1 9 S h a d o w f a c t s . A l l r i g h t s r e s e r v e d .
//
import SwiftUI
import Pachyderm
struct AdvancedPrefsView : View {
@ Preference ( \ . statusContentType ) var statusContentType : StatusContentType
var body : some View {
List {
Section ( footer : Text ( " This option is only supported for Pleroma and Mastodon instances with formatting enabled. On all other instances, formatting symbols will remain in the unformatted plain text. " ) . lineLimit ( nil ) ) {
2019-07-18 22:44:35 +00:00
Picker ( selection : _statusContentType . binding , label : Text ( " Post Content Type " ) ) {
ForEach ( StatusContentType . allCases , id : \ . self ) { type in
2019-06-14 00:53:17 +00:00
Text ( type . displayName ) . tag ( type )
2019-07-28 01:34:20 +00:00
} // . n a v i g a t i o n B a r T i t l e ( " P o s t C o n t e n t T y p e " )
// s e e F B 6 8 3 8 2 9 1
2019-06-14 00:53:17 +00:00
}
}
Section ( header : Text ( " AUTOMATION " ) ) {
2019-07-18 22:44:35 +00:00
NavigationLink ( destination : SilentActionPrefs ( ) ) {
2019-06-14 00:53:17 +00:00
Text ( " Silent Action Permissions " )
}
}
}
. listStyle ( . grouped )
. navigationBarTitle ( Text ( " Advanced " ) )
}
}
#if DEBUG
struct AdvancedPrefsView_Previews : PreviewProvider {
static var previews : some View {
AdvancedPrefsView ( )
}
}
#endif