mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
24 lines
423 B
Mathematica
24 lines
423 B
Mathematica
|
//
|
||
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "NSString+SSK.h"
|
||
|
#import "AppContext.h"
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@implementation NSString (SSK)
|
||
|
|
||
|
- (NSString *)rtlSafeAppend:(NSString *)string
|
||
|
{
|
||
|
if (CurrentAppContext().isRTL) {
|
||
|
return [string stringByAppendingString:self];
|
||
|
} else {
|
||
|
return [self stringByAppendingString:string];
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|