« Catégorie:Xcode » : différence entre les versions
De WikiSwift
Page créée avec « Xcode 14.2 : Ajout couleur depuis Assets :<syntaxhighlight lang="swift"> // Xcode 14.2: let color2 : Color = Color("vertAntique") // XCode plus récent: let color2 : Color = Color.vertAntique </syntaxhighlight>Xcode 14.2 : Personnaliser une barre de navigation : Ajouter un bouton :<syntaxhighlight lang="swift"> // Xcode actuel : .toolbarTitleDisplayMode(.inlineLarge) nouvelle version // Xcode 14.2 : .navigationBarTitleDisplayMode(.automatic) </syntaxhighlight> » |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
Xcode 14.2 : | === Xcode 14.2 : === | ||
Ajout couleur depuis Assets :<syntaxhighlight lang="swift"> | ==== Ajout couleur depuis les Assets : ==== | ||
<syntaxhighlight lang="swift"> | |||
// Xcode 14.2: | // Xcode 14.2: | ||
let color2 : Color = Color("vertAntique") | let color2 : Color = Color("vertAntique") | ||
Ligne 7 : | Ligne 8 : | ||
// XCode plus récent: | // XCode plus récent: | ||
let color2 : Color = Color.vertAntique | let color2 : Color = Color.vertAntique | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Personnaliser une barre de navigation : Ajouter un bouton :<syntaxhighlight lang="swift"> | ==== Xcode 14.2 : ==== | ||
==== Personnaliser une barre de navigation : Ajouter un bouton : ==== | |||
<syntaxhighlight lang="swift"> | |||
// Xcode actuel : | // Xcode actuel : | ||
.toolbarTitleDisplayMode(.inlineLarge) nouvelle version | .toolbarTitleDisplayMode(.inlineLarge) nouvelle version |
Version du 3 septembre 2024 à 13:02
Xcode 14.2 :
Ajout couleur depuis les Assets :
// Xcode 14.2:
let color2 : Color = Color("vertAntique")
// XCode plus récent:
let color2 : Color = Color.vertAntique
Xcode 14.2 :
// Xcode actuel :
.toolbarTitleDisplayMode(.inlineLarge) nouvelle version
// Xcode 14.2 :
.navigationBarTitleDisplayMode(.automatic)
Pages dans la catégorie « Xcode »
Cette catégorie comprend seulement la page ci-dessous.