Fix out of bounds composer in the share sheet and in the app Fix #507
This commit is contained in:
parent
e5b6e79fa9
commit
dbb8bd2a3d
|
@ -37,6 +37,15 @@ class ShareViewController: UIViewController {
|
|||
childView.view.frame = self.view.bounds
|
||||
self.view.addSubview(childView.view)
|
||||
childView.didMove(toParent: self)
|
||||
|
||||
childView.view.translatesAutoresizingMaskIntoConstraints = false
|
||||
|
||||
NSLayoutConstraint.activate([
|
||||
childView.view.topAnchor.constraint(equalTo: self.view.topAnchor),
|
||||
childView.view.bottomAnchor.constraint(equalTo: self.view.bottomAnchor),
|
||||
childView.view.leadingAnchor.constraint(equalTo: self.view.leadingAnchor),
|
||||
childView.view.trailingAnchor.constraint(equalTo: self.view.trailingAnchor)
|
||||
])
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -21,6 +21,8 @@ struct StatusEditorAccessoryView: View {
|
|||
var body: some View {
|
||||
VStack(spacing: 0) {
|
||||
Divider()
|
||||
HStack {
|
||||
ScrollView(.horizontal) {
|
||||
HStack(alignment: .center, spacing: 16) {
|
||||
PhotosPicker(selection: $viewModel.selectedMedias,
|
||||
matching: .any(of: [.images, .videos])) {
|
||||
|
@ -75,13 +77,14 @@ struct StatusEditorAccessoryView: View {
|
|||
Image(systemName: "globe")
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
.padding(.horizontal, .layoutPadding)
|
||||
}
|
||||
Spacer()
|
||||
|
||||
characterCountView
|
||||
.padding(.trailing, .layoutPadding)
|
||||
}
|
||||
.frame(height: 20)
|
||||
.padding(.horizontal, .layoutPadding)
|
||||
.padding(.vertical, 12)
|
||||
.background(.ultraThinMaterial)
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@ public struct StatusesListView<Fetcher>: View where Fetcher: StatusesFetcher {
|
|||
StatusRowView(viewModel: .init(status: status, isCompact: false))
|
||||
.redacted(reason: .placeholder)
|
||||
.shimmering()
|
||||
|
||||
.padding(.horizontal, .layoutPadding)
|
||||
Divider()
|
||||
.padding(.vertical, .dividerPadding)
|
||||
|
|
Loading…
Reference in New Issue