回答編集履歴
2
もともと。
test
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
Data型にして戻したらかそうなったわけではありません。
|
2
|
+
|
3
|
+
元々そうなんです。
|
4
|
+
|
5
|
+
|
6
|
+
|
1
7
|
```swift
|
2
8
|
|
3
9
|
print(type(of: UIColor())) //UIPlaceholderColor
|
1
UIDeviceRGBColor
test
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
```swift
|
2
2
|
|
3
|
-
print(type(of: UIColor()))
|
3
|
+
print(type(of: UIColor())) //UIPlaceholderColor
|
4
|
+
|
5
|
+
print(type(of: UIColor(red: 0.1, green: 0.2, blue: 0.3, alpha: 0.4))) //UIDeviceRGBColor
|
4
6
|
|
5
7
|
print(type(of: UIColor.orange)) //UICachedDeviceRGBColor
|
6
8
|
|
7
|
-
print(type(of: UIColor.white))
|
9
|
+
print(type(of: UIColor.white)) //UICachedDeviceWhiteColor
|
8
10
|
|
9
11
|
```
|
10
12
|
|