mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 01:39:46 +00:00
Refactor views
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
import SwiftUI
|
||||
|
||||
struct ExpandedCommentsView: View {
|
||||
@Environment(\.appEnvironment) private var appEnvironment
|
||||
|
||||
let videoID: String
|
||||
let onClose: () -> Void
|
||||
var onDismissOffsetChanged: ((CGFloat) -> Void)? = nil
|
||||
@@ -18,8 +20,6 @@ struct ExpandedCommentsView: View {
|
||||
var onDragChanged: ((CGFloat) -> Void)? = nil
|
||||
var onDragEnded: ((CGFloat, CGFloat) -> Void)? = nil
|
||||
|
||||
@Environment(\.appEnvironment) private var appEnvironment
|
||||
|
||||
@State private var showScrollButton = false
|
||||
@State private var scrollToTopTrigger: Int = 0
|
||||
@State private var scrollBounceOffset: CGFloat = 0
|
||||
|
||||
Reference in New Issue
Block a user