File tree 5 files changed +5
-7
lines changed
ViewController/View/ChangeFontSizeView
5 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ class AliService: QueryService {
46
46
override public func supportLanguagesDictionary( ) -> MMOrderedDictionary < AnyObject , AnyObject > {
47
47
// TODO: Replace MMOrderedDictionary in the API
48
48
let orderedDict = MMOrderedDictionary < AnyObject , AnyObject > ( )
49
- AliTranslateType . supportLanguagesDictionary . forEach { key, value in
49
+ for ( key, value) in AliTranslateType . supportLanguagesDictionary {
50
50
orderedDict. setObject ( value as NSString , forKey: key. rawValue as NSString )
51
51
}
52
52
return orderedDict
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public final class CaiyunService: QueryService {
27
27
override public func supportLanguagesDictionary( ) -> MMOrderedDictionary < AnyObject , AnyObject > {
28
28
// TODO: Replace MMOrderedDictionary.
29
29
let orderedDict = MMOrderedDictionary < AnyObject , AnyObject > ( )
30
- CaiyunTranslateType . supportLanguagesDictionary . forEach { key, value in
30
+ for ( key, value) in CaiyunTranslateType . supportLanguagesDictionary {
31
31
orderedDict. setObject ( value as NSString , forKey: key. rawValue as NSString )
32
32
}
33
33
return orderedDict
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public final class TencentService: QueryService {
27
27
override public func supportLanguagesDictionary( ) -> MMOrderedDictionary < AnyObject , AnyObject > {
28
28
// TODO: Replace MMOrderedDictionary in the API
29
29
let orderedDict = MMOrderedDictionary < AnyObject , AnyObject > ( )
30
- TencentTranslateType . supportLanguagesDictionary . forEach { key, value in
30
+ for ( key, value) in TencentTranslateType . supportLanguagesDictionary {
31
31
orderedDict. setObject ( value as NSString , forKey: key. rawValue as NSString )
32
32
}
33
33
return orderedDict
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ import Hue
78
78
stackView. heightAnchor. constraint ( equalToConstant: scaleLineHeight) ,
79
79
] )
80
80
81
- scaleLines . enumerated ( ) . forEach { _, view in
81
+ for ( _, view) in scaleLines . enumerated ( ) {
82
82
view. layer? . cornerRadius = scaleLineWidth / 2
83
83
view. layer? . backgroundColor = scaleLineColor. cgColor
84
84
Original file line number Diff line number Diff line change 9
9
import XCTest
10
10
11
11
final class EasydictSwiftTests : XCTestCase {
12
-
13
12
override func setUpWithError( ) throws {
14
13
// Put setup code here. This method is called before the invocation of each test method in the class.
15
14
}
@@ -25,7 +24,7 @@ final class EasydictSwiftTests: XCTestCase {
25
24
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
26
25
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
27
26
}
28
-
27
+
29
28
func testAES( ) {
30
29
let text = " 123 "
31
30
let encryptedText = text. encryptAES ( )
@@ -39,5 +38,4 @@ final class EasydictSwiftTests: XCTestCase {
39
38
// Put the code you want to measure the time of here.
40
39
}
41
40
}
42
-
43
41
}
You can’t perform that action at this time.
0 commit comments