Merge branch 'feature/5203_us01_add_federation_room_overview' into 'develop'

MESSENGER-5203 change image position

See merge request bwmessenger/bundesmessenger/bundesmessenger-ios!253
This commit is contained in:
JanNiklas Grabowski
2023-11-14 07:38:14 +00:00

View File

@@ -56,11 +56,13 @@
// scale and new with federation icon
float scaleFactor = ((self.roomAvatar.frame.size.height * 0.34) / self.federationImage.size.height);
float imageWidth = scaleFactor * self.federationImage.size.width;
// offset federation icon
float offset = 3 * scaleFactor;
// offset federation icon
float offsetTrailing = 3 * scaleFactor;
float offsetBotom = 1;
[self.federationImageView.bottomAnchor constraintEqualToAnchor:self.roomAvatar.bottomAnchor constant:0].active = YES;
[self.federationImageView.trailingAnchor constraintEqualToAnchor:self.roomAvatar.trailingAnchor constant:offset].active = YES;
[self.federationImageView.bottomAnchor constraintEqualToAnchor:self.roomAvatar.bottomAnchor constant:offsetBotom].active = YES;
[self.federationImageView.trailingAnchor constraintEqualToAnchor:self.roomAvatar.trailingAnchor constant:offsetTrailing].active = YES;
[self.federationImageView.heightAnchor constraintEqualToConstant:(self.roomAvatar.frame.size.height * 0.34)].active = YES;
[self.federationImageView.widthAnchor constraintEqualToConstant:imageWidth].active = YES;
}