Add objective C support to SwiftGen assets helpers (#5533)

* Add objective C support to SwiftGen assets helpers

* Use dot notation in ObjC & fix minor issues

Co-authored-by: Arnaud Ringenbach <arnaud.ringenbach@niji.fr>
This commit is contained in:
aringenbach
2022-02-10 17:13:23 +01:00
committed by GitHub
parent f14147c840
commit 7964d314c8
46 changed files with 504 additions and 155 deletions
@@ -55,7 +55,7 @@
case MXDeviceUnknown:
case MXDeviceUnverified:
{
self.deviceStatus.image = [UIImage imageNamed:@"e2e_warning"];
self.deviceStatus.image = AssetImages.e2eWarning.image;
[_verifyButton setTitle:[MatrixKitL10n roomEventEncryptionInfoVerify] forState:UIControlStateNormal];
[_verifyButton setTitle:[MatrixKitL10n roomEventEncryptionInfoVerify] forState:UIControlStateHighlighted];
@@ -65,7 +65,7 @@
}
case MXDeviceVerified:
{
self.deviceStatus.image = [UIImage imageNamed:@"e2e_verified"];
self.deviceStatus.image = AssetSharedImages.e2eVerified.image;
[_verifyButton setTitle:[MatrixKitL10n roomEventEncryptionInfoUnverify] forState:UIControlStateNormal];
[_verifyButton setTitle:[MatrixKitL10n roomEventEncryptionInfoUnverify] forState:UIControlStateHighlighted];
@@ -76,7 +76,7 @@
}
case MXDeviceBlocked:
{
self.deviceStatus.image = [UIImage imageNamed:@"e2e_blocked"];
self.deviceStatus.image = AssetImages.e2eBlocked.image;
[_verifyButton setTitle:[MatrixKitL10n roomEventEncryptionInfoVerify] forState:UIControlStateNormal];
[_verifyButton setTitle:[MatrixKitL10n roomEventEncryptionInfoVerify] forState:UIControlStateHighlighted];