{"id":22065131,"url":"https://github.com/wilddylan/dlmotion","last_synced_at":"2025-07-13T07:10:19.708Z","repository":{"id":30762805,"uuid":"34319458","full_name":"wilddylan/DLMotion","owner":"wilddylan","description":"DLMotion, CoreMotion For your iphone oriention and degrees","archived":false,"fork":false,"pushed_at":"2015-04-21T10:13:52.000Z","size":132,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T00:25:33.008Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wilddylan.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}},"created_at":"2015-04-21T10:08:21.000Z","updated_at":"2015-04-21T10:13:53.000Z","dependencies_parsed_at":"2022-08-26T16:41:03.023Z","dependency_job_id":null,"html_url":"https://github.com/wilddylan/DLMotion","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilddylan%2FDLMotion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilddylan%2FDLMotion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilddylan%2FDLMotion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilddylan%2FDLMotion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wilddylan","download_url":"https://codeload.github.com/wilddylan/DLMotion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245144974,"owners_count":20568056,"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-30T19:15:08.816Z","updated_at":"2025-03-23T18:15:26.063Z","avatar_url":"https://github.com/wilddylan.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DLMotion\nDLMotion, CoreMotion For your iphone oriention and degrees\n\n---\n\n####DLMotion\n\nAdd CoreMotion.Framework\n\n`#import \u003cCoreMotion/CoreMotion.h\u003e`\n\nProperties: \n\n```objective-c\n\n//! @abstract Motion shareInstance\n+ (instancetype)DefulatMotion;\n\n//! @abstract motionManager\n@property (nonatomic, strong) CMMotionManager * motionManager;\n\n//! @abstract OperationQueue\n@property (nonatomic, strong) NSOperationQueue * operationQueue;\n\n//! @abstract DeviceOrientation\n@property (nonatomic, assign) UIDeviceOrientation newDeviceOrientation;\n\n//! @abstract newInterFaceOriention\n@property (nonatomic, assign) UIInterfaceOrientation newInterfaceOrientation;\n\n//! @abstract updateSuccess\n@property (nonatomic, assign) BOOL updateSuccess;\n\n//! @abstract affineTransform\n@property (nonatomic, assign) CGAffineTransform affineTransform;\n\n//! @abstract Degrees\n@property (nonatomic, assign) CGFloat degrees;\n\n//! @abstract Device motion Manager\n@property (nonatomic, strong) CMMotionManager * mMotionManager;\n\n```\n\nMethods: \n\n\n```objective-c\n\n- (void)UpdateDeviceMotion: (UpdateOriention)updateBlock;\n\n/**\n*  Begin update Motion Data\n*/\n- (void)beginMotion;\n\n/**\n*  End\n*/\n- (void)EndMotion;\n```\n\nFor use:\n\n```objective-c\n\n    [[DLMotion DefulatMotion] UpdateDeviceMotion:^(CGFloat DEGREE) {\n       \n        \n        [UIView animateWithDuration:.2 animations:^{\n            \n            _flashButton.transform = CGAffineTransformIdentity;\n            _flashButton.transform = CGAffineTransformRotate(_flashButton.transform, DEGREE);\n        }];\n    }];\n    \n```\n\nOr:\n\n```objective-c\nAdd Notification and Call \"[[DLMotion DefulatMotion] beginMotion];\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilddylan%2Fdlmotion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilddylan%2Fdlmotion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilddylan%2Fdlmotion/lists"}