{"id":13849249,"url":"https://github.com/GlennChiu/GC3DFlipTransitionStyleSegue","last_synced_at":"2025-07-12T16:31:23.598Z","repository":{"id":6120891,"uuid":"7348960","full_name":"GlennChiu/GC3DFlipTransitionStyleSegue","owner":"GlennChiu","description":"iBooks-style 3D flip transition animation rendered in OpenGL ES 2.0 and wrapped in a UIStoryboardSegue subclass","archived":false,"fork":false,"pushed_at":"2013-03-27T00:48:54.000Z","size":1895,"stargazers_count":513,"open_issues_count":6,"forks_count":65,"subscribers_count":39,"default_branch":"master","last_synced_at":"2024-10-28T17:15:21.551Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GlennChiu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-28T02:31:55.000Z","updated_at":"2024-10-22T10:01:37.000Z","dependencies_parsed_at":"2022-09-12T21:21:37.681Z","dependency_job_id":null,"html_url":"https://github.com/GlennChiu/GC3DFlipTransitionStyleSegue","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/GlennChiu%2FGC3DFlipTransitionStyleSegue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlennChiu%2FGC3DFlipTransitionStyleSegue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlennChiu%2FGC3DFlipTransitionStyleSegue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlennChiu%2FGC3DFlipTransitionStyleSegue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GlennChiu","download_url":"https://codeload.github.com/GlennChiu/GC3DFlipTransitionStyleSegue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225829364,"owners_count":17530663,"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-08-04T19:01:11.944Z","updated_at":"2024-11-22T01:30:43.185Z","avatar_url":"https://github.com/GlennChiu.png","language":"Objective-C","funding_links":[],"categories":["Objective-C","etc"],"sub_categories":[],"readme":"GC3DFlipTransitionStyleSegue\n============================\n\niBooks-style 3D flip transition animation rendered in OpenGL ES 2.0 and wrapped in a UIStoryboardSegue subclass.\n\nSegue in action (complete clip can be found on [Youtube](http://youtu.be/Ps2F5kq30t4)):\n\n![image](http://i.imgflip.com/boje.gif)\n\nComparison between iBooks and this segue class:\n\n![image](https://dl.dropbox.com/u/10505256/Comparison.png)\n\nFeatures / Design\n-----------------\n- Uses OpenGL ES rendering instead of Core Animation for high performance (60 fps) and shader effects.\n- Uses GLKit to drastically reduce the amount of OpenGL ES 2.0 code (to write and maintain).\n- Inspired by Apple's 3D flip view controller transition animation, as found in iOS apps like iBooks, iTunes U and Podcasts.\n- Supports different screen sizes and screen orientations.\n- Quick and easy setup. See [installation](https://github.com/GlennChiu/GC3DFlipTransitionStyleSegue#installation).\n\nRequirements\n------------\nGC3DFlipTransitionStyleSegue requires iOS 5.0 and above.\n\nInstallation\n------------\nAdd the source code to your project (and image file if you want to use it). Link your target against `QuartzCore.framework`, `GLKit.framework` and `OpenGLES.framework`.\n\nCocoaPods support: `pod 'GC3DFlipTransitionStyleSegue'`\n\nIf you use this class in a non-ARC project, make sure you add the -fobjc-arc compiler flag for the implementation file.\n\nQuick setup: Just set this class as a custom segue and it'll work right away.\n\n![image](https://dl.dropbox.com/u/10505256/SetCustomSegue.png)\n\nCustomization\n-------------\nTo change the default texture on the side, change these macros:\n```objectivec\n#define IMAGE_NAME  @\"wood\"\n#define IMAGE_TYPE  @\"jpg\"\n```\n\nExposed in the header file are some customization properties:\n\n### - Depth\nThis property sets the depth (or thickness) of the 3D object.\n\n```objectivec\n@property (assign, nonatomic) float depth\n```\n\n**Discussion**\n\nDepth value cannot be 0 (zero) as this will set the default value of 0.5 (`kGC3DFlipTransitionStyle_iBooks`). For a very small depth value use `kGC3DFlipTransitionStyle_Horizontal`.\n\nThere are three constant keys set in the header file:\n\n```objectivec\nextern float kGC3DFlipTransitionStyle_Horizontal\n```\n\nVery small depth like Apple's transition style animation `UIModalTransitionStyleFlipHorizontal`. To see how it looks like, take a look at the [screenshot](https://github.com/GlennChiu/GC3DFlipTransitionStyleSegue#screenshots).\n\n```objectivec\nextern float kGC3DFlipTransitionStyle_iTunesU\n```\n\nDepth value set like the iTunes U app (bit smaller than iBooks).\n\n```objectivec\nextern float kGC3DFlipTransitionStyle_iBooks\n```\n\nDept value set like the iBooks (and Podcasts) app. This is the default value.\n\n### - disableLightEffect\n\nThis property disables the light effect.\n\n```objectivec\n@property (assign, nonatomic) BOOL disableLightEffect\n```\n\n**Discussion**\n\nDisabling the light effect allows the animation to mimic Apple's 3D flip transition animation. It does not have an effect on performance. Light effect is enabled by default.\nTo see how it looks like, take a look at the [screenshot](https://github.com/GlennChiu/GC3DFlipTransitionStyleSegue#screenshots).\n\n### - disableMultisampling\n\nThis property disables 4x multisampling anti-aliasing (4x MSAA).\n\n```objectivec\n@property (assign, nonatomic) BOOL disableMultisampling\n```\n\n**Discussion**\n\nMultisampling improves image quality. It is enabled by default. Disable it for slightly better performance on older devices.\n\n### Example\n\nThis is an example on how to set the segue properties:\n\n```objectivec\n- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender\n{\n    if ([segue isKindOfClass:[GC3DFlipTransitionStyleSegue class]])\n    {\n        GC3DFlipTransitionStyleSegue *flipSegue = (GC3DFlipTransitionStyleSegue *)segue;\n        flipSegue.disableLightEffect = YES;\n        flipSegue.disableMultisampling = YES;\n        flipSegue.depth = kGC3DFlipTransitionStyle_iTunesU;\n    }\n}\n```\n\n### Screenshots:\n\n![image](https://dl.dropbox.com/u/10505256/CustomizationEffects.png)\n\nTodo\n----\n- Add option to flip view controllers in opposite direction like Apple's Podcasts app.\n- Improve snapshot performance on the iPad.\n\nLicense\n-------\n\nThis code is distributed under the terms and conditions of the **zlib license**.\n\nCopyright (c) 2013 Glenn Chiu\n\nThis software is provided 'as-is', without any express or implied\nwarranty. In no event will the authors be held liable for any damages\narising from the use of this software.\n\nPermission is granted to anyone to use this software for any purpose,\nincluding commercial applications, and to alter it and redistribute it\nfreely, subject to the following restrictions:\n\n1. The origin of this software must not be misrepresented; you must not\n   claim that you wrote the original software. If you use this software\n   in a product, an acknowledgment in the product documentation would be\n   appreciated but is not required.\n\n2. Altered source versions must be plainly marked as such, and must not be\n   misrepresented as being the original software.\n\n3. This notice may not be removed or altered from any source\n   distribution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGlennChiu%2FGC3DFlipTransitionStyleSegue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGlennChiu%2FGC3DFlipTransitionStyleSegue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGlennChiu%2FGC3DFlipTransitionStyleSegue/lists"}