Skip to content

Create a carousel to be used as an imported module for external users. Designed a SwiftUI carousel component to be used similar to how Anymo's carousels are used for its end-users. Completed as a interview-project for Anymo.

Notifications You must be signed in to change notification settings

danesh-23/AnymoProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AnymoProject

610170de458eeaa19d3d92d0_anymo-3

Create a carousel to be used as an imported module for external users. Designed a SwiftUI carousel component to be used similar to how Anymo's carousels are used for its end-users. Completed as a interview-project for Anymo.

Installation

1. Install the UnflowInterviewApp package.

2. Import UnflowInterviewApp in the Swift file you want to use the carousel in as shown below.

Screen Shot 2021-10-16 at 5 18 02 PM

3. Instantiate a CarouselItem/s object by passing in the header and body text as well as the image names for the background and optional center display image such as below.

let carousels = [CarouselItem.init(headerText: "Introducing Audio Rooms", bodyText: .constant("We all know video calls can get tiring, so we've introduced a new form of room, just for audio.\nShare stories, music, or just listen to ambient sound while working from home.")]

4. Instantiate a Carousel object by passing in your array of CarouselItem/s and optional custom button texts for the main button as well as the last page button and place it in the body of your view as shown in the image below.

Screen Shot 2021-10-16 at 5 21 48 PM

VOILA! You should have a fully functioning carousel view thats completely integratable in iOS 13 onwards with SwiftUI similar to the one shown here.

combine_images

Potential Improvements (exceeding time constraint)

  • Add support for previous iOS versions.
  • Allow for more dynamism for carousel and its items aside from only having header and body texts and background and 1 display image and one button at the bottom.
  • Extra animations when moving between views etc.
  • Add extra test cases for current test suite as well as including UI tests.
  • Allow for more action buttons such as navigating to different part of your app or open a website up when clicking buttons and being able to extend the Carousel to handle this.

About

Create a carousel to be used as an imported module for external users. Designed a SwiftUI carousel component to be used similar to how Anymo's carousels are used for its end-users. Completed as a interview-project for Anymo.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages