Apprentissage de SwiftUI

Oui pardon, Color.systemBackground est en fait Color(UIColor.systemBackground). Je n’ai pas trouvé comment faire autrement pour prendre la couleur par défaut du fond.

Finalement, j’ai eu une idée juste après avoir envoyé le message… qui fonctionne :slight_smile:

J’ai utilisé plusieurs ZStack imbriqués :

ZStack(alignment: .bottomTrailing) {
    ZStack {
        Circle().fill(Color.systemBackground)
            .frame(width: 65, height: 65)
        Image("profile00")
            .resizable()
            .clipShape(Circle())
            .frame(width: 55, height: 55)
    }
    ZStack {
        Circle().fill(Color.systemBackground)
            .frame(width: 19, height: 19)
        Image(systemName: "plus.circle.fill")
            .resizable()
            .foregroundColor(.blue)
            .background(Color.systemBackground)
            .clipShape(Circle())
            .frame(width: 17, height: 17)
        }
    }

Tout le code est sur mon dépôt GitHub.