mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +02:00
vector-im/element-ios/issues/5298 - Added bottom padding on location markers so they point to the location instead of being centered on it.
This commit is contained in:
committed by
Stefan Ceriu
parent
c6e5d2ebc0
commit
e4a978fdbe
@@ -25,16 +25,20 @@ struct LocationSharingUserMarkerView: View {
|
||||
|
||||
@Environment(\.theme) private var theme: ThemeSwiftUI
|
||||
|
||||
@State var frame: CGRect = .zero
|
||||
|
||||
// MARK: Public
|
||||
|
||||
let avatarData: AvatarInputProtocol
|
||||
|
||||
var body: some View {
|
||||
ZStack(alignment: .center) {
|
||||
ZStack {
|
||||
Image(uiImage: Asset.Images.locationUserMarker.image)
|
||||
AvatarImage(avatarData: avatarData, size: .large)
|
||||
.offset(.init(width: 0.0, height: -1.5))
|
||||
}
|
||||
.background(ViewFrameReader(frame: $frame))
|
||||
.padding(.bottom, frame.height)
|
||||
.accentColor(theme.colors.accent)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user