A clean and simple SwiftUI app that displays a list of favorite contacts using ForEach
with a custom Identifiable
struct.
This app demonstrates how to use SwiftUI to create a dynamic and styled contact list.
Each contact card includes:
- π§βπ Emoji representing the contact
- π Name
- π Phone number
The UI features scrollable lists, card designs, and modern SwiftUI styling.
- β
Uses
ForEach
with Identifiable structs - π¨ Stylish contact cards with rounded corners & shadows
- π Linear gradient background for a modern look
- π Scrollable list of contacts
- π₯ Swift
- π± SwiftUI
- π ForEach
- π Identifiable protocol
- Clone this repository
- Open the project in Xcode
- Run on the iOS Simulator or a physical device
This project was built to practice:
- π Creating and using custom data models in SwiftUI
- π Implementing ForEach with Identifiable
- π¨ Styling views with SwiftUI modifiers