{"id":18271448,"url":"https://github.com/bjhomer/HSImageSidebarView","last_synced_at":"2025-04-05T01:31:35.215Z","repository":{"id":1314344,"uuid":"1259142","full_name":"bjhomer/HSImageSidebarView","owner":"bjhomer","description":"A view based on the sidebar in Apple's Keynote app for iPad.","archived":false,"fork":false,"pushed_at":"2014-06-19T19:56:51.000Z","size":266,"stargazers_count":278,"open_issues_count":4,"forks_count":38,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-03T04:33:56.295Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bjhomer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-01-15T23:52:46.000Z","updated_at":"2025-03-09T09:44:05.000Z","dependencies_parsed_at":"2022-08-16T13:05:09.999Z","dependency_job_id":null,"html_url":"https://github.com/bjhomer/HSImageSidebarView","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjhomer%2FHSImageSidebarView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjhomer%2FHSImageSidebarView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjhomer%2FHSImageSidebarView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjhomer%2FHSImageSidebarView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bjhomer","download_url":"https://codeload.github.com/bjhomer/HSImageSidebarView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276043,"owners_count":20912286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T11:39:18.297Z","updated_at":"2025-04-05T01:31:31.133Z","avatar_url":"https://github.com/bjhomer.png","language":"Objective-C","readme":"HSImageSidebarView\n==================\n\n`HSImageSidebarView` is a subclass of `UIView` for displaying a collection of images.\nThe images are arranged either horizontally or vertically, depending on the\ndimensions of the view. It supports selection, scrolling, drag-and-drop\nrearranging, and drag-and-drop deletion. The API is patterned after `UITableView`,\nso it will be familiar to Cocoa Touch programmers. HSImageSidebarView works with\nboth iPad and iPhone interface idioms.\n\n![Sample screenshot](https://github.com/bjhomer/HSImageSidebarView/raw/master/sampleImage.png)\n\nAn `HSImageSidebarView` is created using the standard `initWithFrame:` method\non `UIView`.\n\n    // Create an 80-pixel sidebar on the left side of the screen\n    HSImageSidebarView *sidebar = [[HSImageSidebarView alloc] initWithFrame:CGRectMake(0, 0, 80, 1004)];\n    sidebar.delegate = self;\n    \n    [parentView addSubview:sidebar];\n    \n    [sidebar release];\n\nIt can also be created in Interface Builder by adding a `UIView` and then setting\nits class (in IB) to `HSImageSidebarView`.\n\nThe image sidebar receives all its information through delegate methods. The\ntwo required methods are these:\n\n    - (NSUInteger)countOfImagesInSidebar:(HSImageSidebarView *)sidebar;\n    - (UIImage *)sidebar:(HSImageSidebarView *)sidebar imageForIndex:(NSUInteger)anIndex;\n\nWhen a user taps, moves, or deletes an image, the delegate can be notified through\none of these methods:\n\n    - (void)sidebar:(HSImageSidebarView *)sidebar didTapImageAtIndex:(NSUInteger)anIndex;\n    - (void)sidebar:(HSImageSidebarView *)sidebar didMoveImageAtIndex:(NSUInteger)oldIndex toIndex:(NSUInteger)newIndex;\n    - (void)sidebar:(HSImageSidebarView *)sidebar didRemoveImageAtIndex:(NSUInteger)anIndex;\n    \n`HSImageSidebarView` requires iOS 4.0 or later. A sample project is included to\ndemonstrate usage.\n\nTo Do\n-----\n\nThe following are features which I would like to see added, but which haven't\nbeen completed yet:\n\n- Expose selection color property\n- Enable/disable drag-to-move\n- Enable/disable drag-to-delete\n- Be smarter about calculating the image frame when the the aspect fit \n  doesn't fill the whole frame. (This mostly applies when trying to position\n  a popover correctly.)\n- Add support for indentation levels\n- Add support for numbering images\n- Add support for multiple selection","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjhomer%2FHSImageSidebarView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbjhomer%2FHSImageSidebarView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjhomer%2FHSImageSidebarView/lists"}