View in English

  • Apple Developer
    • Get Started

    Explore Get Started

    • Overview
    • Learn
    • Apple Developer Program

    Stay Updated

    • Latest News
    • Hello Developer
    • Platforms

    Explore Platforms

    • Apple Platforms
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store

    Featured

    • Design
    • Distribution
    • Games
    • Accessories
    • Web
    • Home
    • CarPlay
    • Technologies

    Explore Technologies

    • Overview
    • Xcode
    • Swift
    • SwiftUI

    Featured

    • Accessibility
    • App Intents
    • Apple Intelligence
    • Games
    • Machine Learning & AI
    • Security
    • Xcode Cloud
    • Community

    Explore Community

    • Overview
    • Meet with Apple events
    • Community-driven events
    • Developer Forums
    • Open Source

    Featured

    • WWDC
    • Swift Student Challenge
    • Developer Stories
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Centers
    • Documentation

    Explore Documentation

    • Documentation Library
    • Technology Overviews
    • Sample Code
    • Human Interface Guidelines
    • Videos

    Release Notes

    • Featured Updates
    • iOS
    • iPadOS
    • macOS
    • watchOS
    • visionOS
    • tvOS
    • Xcode
    • Downloads

    Explore Downloads

    • All Downloads
    • Operating Systems
    • Applications
    • Design Resources

    Featured

    • Xcode
    • TestFlight
    • Fonts
    • SF Symbols
    • Icon Composer
    • Support

    Explore Support

    • Overview
    • Help Guides
    • Developer Forums
    • Feedback Assistant
    • Contact Us

    Featured

    • Account Help
    • App Review Guidelines
    • App Store Connect Help
    • Upcoming Requirements
    • Agreements and Guidelines
    • System Status
  • Quick Links

    • Events
    • News
    • Forums
    • Sample Code
    • Videos
 

Vídeos

Abrir menu Fechar menu
  • Coleções
  • Todos os vídeos
  • Sobre

Mais vídeos

  • Sobre
  • Código
  • Get it right (to left)

    Discover how to develop your app so that it can be localized into "right-to-left" languages such as Arabic and Hebrew. We'll take you through important considerations for these languages, share solutions to challenges, and provide best practices for delivering a great right-to-left experience in your app.

    Recursos

    • Localization
    • Expanding Your App to New Markets
    • Internationalization and Localization Guide
      • Vídeo HD
      • Vídeo SD

    Vídeos relacionados

    WWDC22

    • Build global apps: Localization by example
    • Design for Arabic
    • Design for Arabic · صمّم بالعربي

    WWDC21

    • Streamline your localized strings
  • Buscar neste vídeo...
    • 12:55 - Control orientation example

      struct ContentView: View {
          var body: some View {
          VStack(alignment: .leading) {
              Button(action: {}) {
                  Label("Preview", systemImage: "arrowtriangle.forward.fill")
              }.labelStyle(IconOnRightLabelStyle())
                  
                  HStack() {
                      Button(action: {}) {
                          Label("Left", systemImage: "arrow.left")
                      }.labelStyle(TitleAndIconLabelStyle())
      
                      Button(action: {}) {
                          Label("Right", systemImage: "arrow.right")
                      }.labelStyle(IconOnRightLabelStyle())
                  }.environment(\.layoutDirection, .leftToRight)
              }.padding()
          }
      }
    • 14:22 - Control orientation custom label style example

      struct IconOnRightLabelStyle : LabelStyle {
          func makeBody(configuration: Configuration) -> some View {
              HStack {
                  configuration.title
                  configuration.icon
              }
          }
      }
    • 14:43 - Control orientation example

      struct ContentView: View {
          var body: some View {
          VStack(alignment: .leading) {
              Button(action: {}) {
                  Label("Preview", systemImage: "arrowtriangle.forward.fill")
              }.labelStyle(IconOnRightLabelStyle())
                  
                  HStack() {
                      Button(action: {}) {
                          Label("Left", systemImage: "arrow.left")
                      }.labelStyle(TitleAndIconLabelStyle())
      
                      Button(action: {}) {
                          Label("Right", systemImage: "arrow.right")
                      }.labelStyle(IconOnRightLabelStyle())
                  }.environment(\.layoutDirection, .leftToRight)
              }.padding()
          }
      }
    • 18:58 - Control orientation example—keeping controls from reversing

      struct ContentView: View {
          var body: some View {
              VStack(alignment: .leading) {
                  Picker(selection: $textStyle, label: Text("Text Style")) {
                      Text("B").tag(TextStyle.bold)
                      Text("I").tag(TextStyle.italic)
                      Text("U").tag(TextStyle.underline)
                      Text("S").tag(TextStyle.strikethrough)
                  }.pickerStyle(.segmented)
      
                  Picker(selection: $alignment, label: Text("Alignment")) {
                      Image(systemName: "text.alignleft").tag(TextAlignment.left)
                      Image(systemName: "text.aligncenter").tag(TextAlignment.center)
                      Image(systemName: "text.alignright").tag(TextAlignment.right)
                 }.pickerStyle(.segmented)
                   .environment(\.layoutDirection, .leftToRight)
              }
          }
      }
    • 22:38 - Control orientation example—form with multiline text alignment modifier

      var body: some View {
         Form {
              TextField("Password:", text: $password)
              TextField("Verify:", text: $verifyPassword)
              TextField("Password Hint:\n(Recommended)", text: $passwordHint)
                  .multilineTextAlignment(.trailing)
          }.padding()
      }
    • 27:14 - Set up Auto Layout in code

      myView.leadingAnchor.constraint(equalTo: mySuperView.leadingAnchor, constant:16)
    • 29:05 - Digits in Arabic

      myLabel.string = String(localized: "There are \(peopleInChat) people in this chat.",
                              comment: "Label indicating number of chat participants")
      
      Text("There are \(peopleInChat) people in this chat.",
           comment: "Label indicating number of chat participants")
    • 30:12 - Digits in Arabic

      myLabel.string = String(localized: "This application supports \(3) file formats.",
                              comment: "Label showing number of supported file formats
                              (number is always 3)")
    • 31:41 - Numbers in RTL text

      myLabel.stringValue = String(localized: "\(percentComplete.formatted(.percent)) complete")

Developer Footer

  • Vídeos
  • WWDC22
  • Get it right (to left)
  • Open Menu Close Menu
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store
    Open Menu Close Menu
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • Icon Composer
    • SF Symbols
    Open Menu Close Menu
    • Accessibility
    • Accessories
    • Apple Intelligence
    • Audio & Video
    • Augmented Reality
    • Business
    • Design
    • Distribution
    • Education
    • Games
    • Health & Fitness
    • In-App Purchase
    • Localization
    • Maps & Location
    • Machine Learning & AI
    • Security
    • Safari & Web
    Open Menu Close Menu
    • Documentation
    • Downloads
    • Sample Code
    • Videos
    Open Menu Close Menu
    • Help Guides & Articles
    • Contact Us
    • Forums
    • Feedback & Bug Reporting
    • System Status
    Open Menu Close Menu
    • Apple Developer
    • App Store Connect
    • Certificates, IDs, & Profiles
    • Feedback Assistant
    Open Menu Close Menu
    • Apple Developer Program
    • Apple Developer Enterprise Program
    • App Store Small Business Program
    • MFi Program
    • Mini Apps Partner Program
    • News Partner Program
    • Video Partner Program
    • Security Bounty Program
    • Security Research Device Program
    Open Menu Close Menu
    • Meet with Apple
    • Apple Developer Centers
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Academies
    • WWDC
    Read the latest news.
    Get the Apple Developer app.
    Copyright © 2026 Apple Inc. All rights reserved.
    Terms of Use Privacy Policy Agreements and Guidelines