fossasia / susi_iOS

SUSI AI iOS app http://susi.ai
Apache License 2.0
1.87k stars 139 forks source link

Add a section to allow the user to save his/her favourite skills #322 #572

Closed Sangu80 closed 4 years ago

Sangu80 commented 4 years ago
   struct landmarkList : View {
       @state var showFavoritesOnly = false

       var body : some View{
           NavigationView{
               List(landmarkData) { landmark in
                   if !self,showFavoritesOnly || landmark.isFavorite {
               NavigaitonLink(destination: LandmarkDetail(landmark: landmark))
                    Landmarkrow(landmark: landmark)

                }
           }
           .navigationBarTitle(Text("Landmarks"))
       }
   }

Fixes #[Add issue number here. If you do not solve the issue entirely, please change the message e.g. "First steps for issues #IssueNumber]

Changes: [Add here what changes were made in this issue and if possible provide links.]

Screenshots for the change:

Sangu80 commented 4 years ago

donw with the issue Add a section to allow the user to save his/her favourite skills #322