PagingPhotoView.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright 2016 Google LLC. All rights reserved.
  3. *
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
  6. * file except in compliance with the License. You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software distributed under
  11. * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
  12. * ANY KIND, either express or implied. See the License for the specific language governing
  13. * permissions and limitations under the License.
  14. */
  15. #import <UIKit/UIKit.h>
  16. /**
  17. * Represents a place photo, along with the attributions which are required to be displayed along
  18. * with it.
  19. */
  20. @interface AttributedPhoto : NSObject
  21. @property(nonatomic, strong) UIImage *image;
  22. @property(nonatomic, strong) NSAttributedString *attributions;
  23. @end
  24. /*
  25. * A horizontally-paging scroll view that displays a list of photo images and their attributions.
  26. */
  27. @interface PagingPhotoView : UIScrollView
  28. /**
  29. * An array of |AttributedPhoto| objects representing the photos to display.
  30. */
  31. @property(nonatomic, copy) NSArray *photoList;
  32. @end