You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a picture -> \(.image(#imageLiteral(resourceName: "huaji"))) -> Displayed in original size.
1596
1596
1597
-
This is a picture -> \(.image(#imageLiteral(resourceName: "huaji"), .custom(size: .init(width: 200, height: 200)))) -> Displayed in custom size.
1597
+
This is a picture -> \(.image(#imageLiteral(resourceName: "huaji"), .custom(.center, size: .init(width: 50, height: 50)))) -> Displayed in custom size.
1598
1598
1599
1599
This is the recommended size image -> \(.image(#imageLiteral(resourceName: "huaji"), .proposed(.center))).
This is a picture -> \(.image(#imageLiteral(resourceName:"huaji"))) -> Displayed in original size.
47
+
48
+
This is a picture -> \(.image(#imageLiteral(resourceName:"swift-icon"),.custom(.center, size:.init(width:50, height:50)))) -> Displayed in custom size.
49
+
50
+
This is the recommended size image -> \(.image(#imageLiteral(resourceName:"swift-icon"),.proposed(.center)))).
51
+
52
+
-----------------------
53
+
54
+
\("ViewAttachment only support UITextView (以下视图附件仅UITextView支持):",.font(.systemFont(ofSize:24, weight:.medium)))
What exactly makes code “unsafe”? Join the Swift team as we take a look at the programming language's safety precautions — and when you might need to reach for unsafe operations. We'll take a look at APIs that can cause unexpected states if not used correctly, and how you can write code more specifically to avoid undefined behavior. Learn how to work with C APIs that use pointers and the steps to take when you want to use Swift's unsafe pointer APIs. To get the most out of this session, you should have some familiarity with Swift and the C programming language. And for more information on working with pointers, check out \"Safely Manage Pointers in Swift\".
0 commit comments