Wednesday, October 28, 2026
HomeiOS Developmentios - Circle() in SwiftUI do not present in my iPhone

ios – Circle() in SwiftUI do not present in my iPhone

[ad_1]

I’ve two Circles() to point out a circle progress bar, one in every of that is the progress the one other one is the background, however the progress circle does not present in my iPhone, i do not why, assist!! That is my code:

struct ProgressBarView: View {

@Setting(.colorScheme) var colorScheme: ColorScheme
    
var physique: some View {
        ZStack {
            
            Group {
                
                Circle()
                    .stroke(lineWidth: 14.0)
                    .opacity(colorScheme == .darkish ? 1 : 0.3)
                
                Circle()
                    .trim(from: 0.0, to: 0.3 )
                    .stroke(type: StrokeStyle(lineWidth: 14.0, lineCap: .spherical, lineJoin: .spherical))
                    .foregroundColor(colorScheme == .darkish ? .blue : Coloration("DarkBlue"))
                    .rotationEffect(Angle(levels: 270.0))
                
                Textual content("16hrs")
                    .font(.system(measurement: 22))
                    .fontWeight(.common)
            }//: Group
            .foregroundColor(colorScheme == .darkish ? .white : Coloration("DarkBlue"))

        }
}}

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments