mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-27 01:20:41 +00:00
Fix UserPreferences making timeline laggy
This commit is contained in:
parent
9b21ac3e95
commit
503dc3b3ee
1 changed files with 4 additions and 36 deletions
|
@ -40,42 +40,10 @@ public class UserPreferences: ObservableObject {
|
|||
|
||||
@AppStorage("show_second_column_ipad") public var showiPadSecondaryColumn = true
|
||||
|
||||
@AppStorage("swipeactions.status.trailing.right") var _swipeActionsStatusTrailingRight = StatusAction.favorite.rawValue
|
||||
public var swipeActionsStatusTrailingRight: StatusAction {
|
||||
get {
|
||||
StatusAction(rawValue: _swipeActionsStatusTrailingRight) ?? StatusAction.none
|
||||
}
|
||||
set {
|
||||
_swipeActionsStatusTrailingRight = newValue.rawValue
|
||||
}
|
||||
}
|
||||
@AppStorage("swipeactions.status.trailing.left") var _swipeActionsStatusTrailingLeft = StatusAction.boost.rawValue
|
||||
public var swipeActionsStatusTrailingLeft: StatusAction {
|
||||
get {
|
||||
StatusAction(rawValue: _swipeActionsStatusTrailingLeft) ?? StatusAction.none
|
||||
}
|
||||
set {
|
||||
_swipeActionsStatusTrailingLeft = newValue.rawValue
|
||||
}
|
||||
}
|
||||
@AppStorage("swipeactions.status.leading.left") var _swipeActionsStatusLeadingLeft = StatusAction.reply.rawValue
|
||||
public var swipeActionsStatusLeadingLeft: StatusAction {
|
||||
get {
|
||||
StatusAction(rawValue: _swipeActionsStatusLeadingLeft) ?? StatusAction.none
|
||||
}
|
||||
set {
|
||||
_swipeActionsStatusLeadingLeft = newValue.rawValue
|
||||
}
|
||||
}
|
||||
@AppStorage("swipeactions.status.leading.right") var _swipeActionsStatusLeadingRight = StatusAction.none.rawValue
|
||||
public var swipeActionsStatusLeadingRight: StatusAction {
|
||||
get {
|
||||
StatusAction(rawValue: _swipeActionsStatusLeadingRight) ?? StatusAction.none
|
||||
}
|
||||
set {
|
||||
_swipeActionsStatusLeadingRight = newValue.rawValue
|
||||
}
|
||||
}
|
||||
@AppStorage("swipeactions-status-trailing-right") public var swipeActionsStatusTrailingRight = StatusAction.favorite
|
||||
@AppStorage("swipeactions-status-trailing-left") public var swipeActionsStatusTrailingLeft = StatusAction.boost
|
||||
@AppStorage("swipeactions-status-leading-left") public var swipeActionsStatusLeadingLeft = StatusAction.reply
|
||||
@AppStorage("swipeactions-status-leading-right") public var swipeActionsStatusLeadingRight = StatusAction.none
|
||||
|
||||
public var postVisibility: Models.Visibility {
|
||||
if useInstanceContentSettings {
|
||||
|
|
Loading…
Reference in a new issue