{"id":13536987,"url":"https://github.com/Zaprogramiacz/MGFlipView","last_synced_at":"2025-04-02T03:31:32.951Z","repository":{"id":108732812,"uuid":"301160772","full_name":"Zaprogramiacz/MGFlipView","owner":"Zaprogramiacz","description":"MGFlipView allows to create flipping view in easy way without worrying about flipping animation and flipping logic.","archived":false,"fork":false,"pushed_at":"2020-10-18T16:56:35.000Z","size":3597,"stargazers_count":65,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-03T02:32:09.181Z","etag":null,"topics":["flip","flipcard","flipping-cards","flippingcard","flipview","ios","macos","swift","swift-package-manager","swift5-3","swiftui","tvos","watchos"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/Zaprogramiacz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-10-04T15:22:37.000Z","updated_at":"2024-02-29T01:14:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"847b13a6-a99e-4e68-867c-3f9cc59759cd","html_url":"https://github.com/Zaprogramiacz/MGFlipView","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zaprogramiacz%2FMGFlipView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zaprogramiacz%2FMGFlipView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zaprogramiacz%2FMGFlipView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zaprogramiacz%2FMGFlipView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zaprogramiacz","download_url":"https://codeload.github.com/Zaprogramiacz/MGFlipView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246751241,"owners_count":20827856,"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":["flip","flipcard","flipping-cards","flippingcard","flipview","ios","macos","swift","swift-package-manager","swift5-3","swiftui","tvos","watchos"],"created_at":"2024-08-01T09:00:53.177Z","updated_at":"2025-04-02T03:31:30.046Z","avatar_url":"https://github.com/Zaprogramiacz.png","language":"Swift","readme":"# MGFlipView\n\n![Swift](https://img.shields.io/badge/Swift-5.3-orange)\n![Platforms](https://img.shields.io/badge/Platform-iOS%20%7C%20macOS%20%7C%20watchOS%20%7C%20tvOS-blue)\n![Dependency manager](https://img.shields.io/badge/Dependency%20manager-SPM-green)\n\n## About\n\nIf you are looking for an easy way of implement 3D flipping view, you are in the right place. MGFlipView allows to create flipping view in easy way without worring about flipping animation and flipping logic. \n\nThe library is written in SwiftUI and it can be used on all platforms (iOS, macOS, watchOS, tvOS). \n\nExamples of usage for all platforms are available after opening `MGFlipView.xcworkspace`.\n\nThe library is distributed via SPM.\n\n## Preview\n\n![Preview](Examples/flip_view_example.gif)\n\n## Documentation\n\n`FlipView` takes 6 arguments:\n\n| Argument  | Type                   | Description  |\n| --------- |:----------------------:| ------------ |\n| frontView | `() -\u003e View`           | Front view builder. Visible if flipped == true. |\n| backView  | `() -\u003e View`           | Back view builder. Visible if flipped == false. |\n| flipped   | `Binding\u003cBool\u003e`        | Binding which gives possiblity to flip the view. |\n| flipAxis  | `FlipAxis`             | Rotation axis. `FlipAxis` have 4 defined values(`x`, `y`, `xy`, `custom(x: Double, y: Double)`). The custom value gives possiblity to declare your own axis. It has `x` default value when argument is not passed to the FlipView initializer. |\n| perspective | `CGFloat` | The relative vanishing point. It has 0.5 default value when argument is not passed to the FlipView initializer. |\n| animation | `AnimationDescription` | Defines the animation that takes place when flipping. Animation can be customized by setting duration and timing function (`linear`, `easeIn`, `easeOut`, `easeInOut`). It has `.init(type: .linear, duration: 0.25)` default value when argument is not passed to the FlipView initializer. |\n\n```swift\npublic init(@ViewBuilder frontView: @escaping () -\u003e ContentFront,\n            @ViewBuilder backView: @escaping () -\u003e ContentBack,\n                         flipped: Binding\u003cBool\u003e,\n                         flipAxis: FlipAxis = .x,\n                         perspective: CGFloat = 0.5,\n                         animation: AnimationDescription = .default)\n```\n\n## Installation\n\nUse `https://github.com/Zaprogramiacz/MGFlipView.git` link to add Swift Package to Xcode project\n\n## License\n\n[MIT License](LICENSE)\n\nCopyright (c) 2020 Maciej Gomółka\n","funding_links":[],"categories":["Samples","🌎 by the community","UI"],"sub_categories":["Others"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FZaprogramiacz%2FMGFlipView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FZaprogramiacz%2FMGFlipView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FZaprogramiacz%2FMGFlipView/lists"}