SwiftUI - Circular Image Example.

This tutorial is to display Alert in SwiftUI. As you know in Swift we are using UIImageView to  display image on screen. Now here in SwiftUI we have a class Image to do some thing. Here we are study about Image in SwiftUI and about it's circular Shape. first you create SwiftUI Project.



You are already study "UIImageView Programmatically In Swift 5", This tutorial is only for SwiftUI.

Add image in Asset:
Drag and drop your image in Asset folder.



Simple Image Adding Code: Set image Width and height 150
Image("swiftui")
.resizable()
.frame(width: 150, height: 150)
Circular Image Adding Code:
Image("swiftui")
.resizable()
.frame(width: 200, height: 200)
.clipShape(Circle())
.overlay(Circle().stroke(Color.white, lineWidth: 4))
.shadow(radius: 10)
Output:


Thanks.


Checkout the Jooble if your are looking for a job as an iOS developer. 

SwiftUI - Circular Image Example. SwiftUI - Circular Image Example. Reviewed by KIRIT MODI on 20:06:00 Rating: 5

1 comment:

  1. This way my colleague Wesley Virgin's tale launches in this shocking and controversial video.

    As a matter of fact, Wesley was in the military-and soon after leaving-he revealed hidden, "self mind control" secrets that the CIA and others used to get everything they want.

    As it turns out, these are the EXACT same secrets many celebrities (notably those who "became famous out of nothing") and top business people used to become rich and famous.

    You probably know how you use less than 10% of your brain.

    That's mostly because the majority of your brain's power is UNCONSCIOUS.

    Maybe that conversation has even taken place IN YOUR own brain... as it did in my good friend Wesley Virgin's brain about seven years back, while driving an unlicensed, beat-up garbage bucket of a vehicle with a suspended license and on his debit card.

    "I'm so fed up with living check to check! Why can't I turn myself successful?"

    You took part in those types of thoughts, isn't it so?

    Your own success story is waiting to be written. All you need is to believe in YOURSELF.

    CLICK HERE To Find Out How To Become A MILLIONAIRE

    ReplyDelete

Powered by Blogger.