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,12 +8,12 @@
|
||||
import SwiftUI
|
||||
|
||||
struct ExpandableText: View {
|
||||
let text: String
|
||||
var lineLimit: Int = 2
|
||||
@Binding var isExpanded: Bool
|
||||
|
||||
@Environment(\.font) private var font
|
||||
|
||||
let text: String
|
||||
var lineLimit: Int = 2
|
||||
|
||||
@Binding var isExpanded: Bool
|
||||
@State private var fullHeight: CGFloat = 0
|
||||
@State private var truncatedHeight: CGFloat = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user