استخدام SF Symbols
اعرض أيقونات النظام القابلة لتغيير الحجم باستخدام systemName
استخدام SF Symbols درس مجاني في SwiftUI Academy على CoddyKit. هذا هو الدرس 4 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في SwiftUI Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة SwiftUI Academy 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
Apple Icons for Free
SF Symbols is Apple library of thousands of crisp, scalable icons that match the system font. They are free and built right in. ⭐
Showing a Symbol
Display one with Image and the systemName parameter. The name comes from the SF Symbols app, like star or heart.
Image(systemName: "star")Filled Variants
Many symbols offer a filled version. Just add .fill to the name to get a solid icon instead of an outline.
Image(systemName: "star.fill")Symbols Are Text-Like
Because SF Symbols align to the font, you size them with font and the same text styles you already know.
Image(systemName: "bell")
.font(.title)Coloring Symbols
Tint a symbol with foregroundStyle, exactly like text. This makes stars yellow or hearts red in one line.
Image(systemName: "heart.fill")
.foregroundStyle(.red)Scaling with imageScale
The imageScale modifier nudges a symbol to small, medium, or large relative to its surrounding text.
Image(systemName: "gear")
.imageScale(.large)Symbols Inside Text
You can drop a symbol inside a Text view, so an icon and a word flow together as one styled label.
Text("\(Image(systemName: "bolt")) Fast")Labels Pair Icon and Title
The Label view bundles a symbol with text, giving you a tidy icon-plus-title combo used all over iOS.
Label("Favorites", systemImage: "star")Multicolor and Hierarchical
Use symbolRenderingMode for richer looks. Hierarchical adds depth, while multicolor uses the symbol built-in colors.
Image(systemName: "cloud.sun.fill")
.symbolRenderingMode(.multicolor)Symbols in Buttons
Symbols shine inside buttons and toolbars, giving clear, compact actions like share, add, or delete.
Button(action: share) {
Image(systemName: "square.and.arrow.up")
}Find the Right Name
Download the free SF Symbols app from Apple to browse and copy exact names. Guessing names often fails silently.
Quick Check
How do you display an SF Symbol in SwiftUI?
Lesson Recap
You added SF Symbols with systemName, styled them like text, and paired them with titles using Label. Crisp icons everywhere. 🚀
الأسئلة الشائعة
هل درس «استخدام SF Symbols» مجاني؟
نعم — نص درس «استخدام SF Symbols» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة SwiftUI Academy، انتقل إلى CoddyKit PRO. تتضمن دورة SwiftUI Academy 4 دروس في المجموع.
ماذا ستتعلم في «استخدام SF Symbols»؟
اعرض أيقونات النظام القابلة لتغيير الحجم باستخدام systemName تتمرن على SwiftUI Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ SwiftUI Academy؟
لا تُشترط خبرة سابقة. SwiftUI Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 4 من أصل 4.
كم من الوقت يستغرق درس «استخدام SF Symbols»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس SwiftUI Academy هذا؟
نعم. كل درس في SwiftUI Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- الخط والسُمك واللون
- النص متعدد الأسطر والمحاذاة
- تحميل الصور من الأصول
- استخدام SF Symbols