{"abstract":[{"text":"The host time, in seconds, when the drawable was displayed onscreen.","type":"text"}],"hierarchy":{"paths":[["doc:\/\/com.apple.documentation\/documentation\/technologies","doc:\/\/com.apple.metal\/documentation\/Metal","doc:\/\/com.apple.metal\/documentation\/Metal\/MTLDrawable"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/com.apple.metal\/documentation\/Metal\/MTLDrawable\/presentedTime"},"kind":"symbol","legalNotices":{"copyright":"Copyright &copy; 2026 Apple Inc. All rights reserved.","privacyPolicy":"https:\/\/www.apple.com\/privacy\/privacy-policy","termsOfUse":"https:\/\/www.apple.com\/legal\/internet-services\/terms\/site.html"},"metadata":{"availableLanguages":["de-DE","en-US","es-419","fr-FR","it-IT","ja-JP","ko-KR","pt-BR","zh-CN"],"externalID":"c:objc(pl)MTLDrawable(py)presentedTime","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"presentedTime"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"c:@T@CFTimeInterval","text":"CFTimeInterval"}],"modules":[{"name":"Metal"}],"navigatorTitle":[{"kind":"identifier","text":"presentedTime"}],"platforms":[{"introducedAt":"10.3","name":"iOS"},{"introducedAt":"10.3","name":"iPadOS"},{"introducedAt":"13.4","name":"Mac Catalyst"},{"introducedAt":"10.15.4","name":"macOS"},{"introducedAt":"10.2","name":"tvOS"},{"introducedAt":"1.0","name":"visionOS"}],"required":true,"role":"symbol","roleHeading":"Instance Property","symbolKind":"property","title":"presentedTime"},"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["iOS","iPadOS","Mac Catalyst","macOS","tvOS","visionOS"],"tokens":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"presentedTime"},{"kind":"text","text":": "},{"identifier":"doc:\/\/com.apple.documentation\/documentation\/CoreFoundation\/CFTimeInterval","kind":"typeIdentifier","preciseIdentifier":"c:@T@CFTimeInterval","text":"CFTimeInterval"},{"kind":"text","text":" { "},{"kind":"keyword","text":"get"},{"kind":"text","text":" }"}]}],"kind":"declarations"},{"content":[{"anchor":"discussion","level":2,"text":"Discussion","type":"heading"},{"inlineContent":[{"text":"Typically, you query this property in a callback method. See ","type":"text"},{"identifier":"doc:\/\/com.apple.metal\/documentation\/Metal\/MTLDrawable\/addPresentedHandler(_:)","isActive":true,"type":"reference"},{"text":".","type":"text"}],"type":"paragraph"},{"inlineContent":[{"text":"The property value is ","type":"text"},{"code":"0.0","type":"codeVoice"},{"text":" if the drawable hasn’t been presented or if its associated frame was dropped.","type":"text"}],"type":"paragraph"}],"kind":"content"}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"seeAlsoSections":[{"anchor":"Getting-presentation-information","generated":true,"identifiers":["doc:\/\/com.apple.metal\/documentation\/Metal\/MTLDrawable\/addPresentedHandler(_:)"],"title":"Getting presentation information"}],"variants":[{"paths":["\/documentation\/metal\/mtldrawable\/presentedtime"],"traits":[{"interfaceLanguage":"swift"}]},{"paths":["\/documentation\/metal\/mtldrawable\/presentedtime"],"traits":[{"interfaceLanguage":"occ"}]}],"references":{"doc://com.apple.documentation/documentation/CoreFoundation/CFTimeInterval":{"abstract":[{"text":"Type used to represent elapsed time in seconds.","type":"text"}],"fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"kind":"identifier","text":"CFTimeInterval"}],"identifier":"doc:\/\/com.apple.documentation\/documentation\/CoreFoundation\/CFTimeInterval","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"CFTimeInterval"}],"role":"symbol","title":"CFTimeInterval","type":"topic","url":"\/documentation\/corefoundation\/cftimeinterval"},"doc://com.apple.documentation/documentation/technologies":{"abstract":[],"identifier":"doc:\/\/com.apple.documentation\/documentation\/technologies","kind":"technologies","role":"overview","title":"Technologies","type":"topic","url":"\/documentation\/technologies"},"doc://com.apple.metal/documentation/Metal":{"abstract":[{"text":"Render advanced 3D graphics and compute data in parallel with graphics processors.","type":"text"}],"identifier":"doc:\/\/com.apple.metal\/documentation\/Metal","kind":"symbol","navigatorTitle":[{"kind":"text","text":"Metal"}],"role":"collection","title":"Metal","type":"topic","url":"\/documentation\/metal"},"doc://com.apple.metal/documentation/Metal/MTLDrawable":{"abstract":[{"text":"A displayable resource that can be rendered or written to.","type":"text"}],"fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"kind":"identifier","text":"MTLDrawable"}],"identifier":"doc:\/\/com.apple.metal\/documentation\/Metal\/MTLDrawable","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"MTLDrawable"}],"role":"symbol","title":"MTLDrawable","type":"topic","url":"\/documentation\/metal\/mtldrawable"},"doc://com.apple.metal/documentation/Metal/MTLDrawable/addPresentedHandler(_:)":{"abstract":[{"text":"Registers a block of code to be called immediately after the drawable is presented.","type":"text"}],"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"addPresentedHandler"},{"kind":"text","text":"("},{"kind":"typeIdentifier","preciseIdentifier":"c:@T@MTLDrawablePresentedHandler","text":"MTLDrawablePresentedHandler"},{"kind":"text","text":")"}],"identifier":"doc:\/\/com.apple.metal\/documentation\/Metal\/MTLDrawable\/addPresentedHandler(_:)","kind":"symbol","navigatorTitle":[{"kind":"text","text":"- "},{"kind":"identifier","text":"addPresentedHandler:"}],"required":true,"role":"symbol","title":"addPresentedHandler(_:)","type":"topic","url":"\/documentation\/metal\/mtldrawable\/addpresentedhandler(_:)"},"doc://com.apple.metal/documentation/Metal/MTLDrawable/presentedTime":{"abstract":[{"text":"The host time, in seconds, when the drawable was displayed onscreen.","type":"text"}],"fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"presentedTime"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"c:@T@CFTimeInterval","text":"CFTimeInterval"}],"identifier":"doc:\/\/com.apple.metal\/documentation\/Metal\/MTLDrawable\/presentedTime","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"presentedTime"}],"required":true,"role":"symbol","title":"presentedTime","type":"topic","url":"\/documentation\/metal\/mtldrawable\/presentedtime"}},"variantOverrides":[{"patch":[{"op":"replace","path":"\/identifier\/interfaceLanguage","value":"occ"},{"op":"replace","path":"\/metadata\/platforms","value":[{"introducedAt":"10.3","name":"iOS"},{"introducedAt":"10.3","name":"iPadOS"},{"introducedAt":"13.4","name":"Mac Catalyst"},{"introducedAt":"10.15.4","name":"macOS"},{"introducedAt":"10.2","name":"tvOS"},{"introducedAt":"1.0","name":"visionOS"}]},{"op":"replace","path":"\/metadata\/roleHeading","value":"Instance Property"},{"op":"replace","path":"\/metadata\/title","value":"presentedTime"},{"op":"replace","path":"\/metadata\/symbolKind","value":"property"},{"op":"replace","path":"\/metadata\/fragments","value":[{"kind":"identifier","text":"presentedTime"}]},{"op":"replace","path":"\/hierarchy","value":{"paths":[["doc:\/\/com.apple.documentation\/documentation\/technologies","doc:\/\/com.apple.metal\/documentation\/Metal","doc:\/\/com.apple.metal\/documentation\/Metal\/MTLDrawable"]]}},{"op":"add","path":"\/topicSections","value":null},{"op":"add","path":"\/relationshipsSections","value":null},{"op":"replace","path":"\/seeAlsoSections","value":[{"anchor":"Getting-presentation-information","generated":true,"identifiers":["doc:\/\/com.apple.metal\/documentation\/Metal\/MTLDrawable\/addPresentedHandler(_:)"],"title":"Getting presentation information"}]},{"op":"replace","path":"\/primaryContentSections\/0","value":{"declarations":[{"languages":["occ"],"platforms":["iOS","iPadOS","Mac Catalyst","macOS","tvOS","visionOS"],"tokens":[{"kind":"keyword","text":"@property"},{"kind":"text","text":" ("},{"kind":"keyword","text":"nonatomic"},{"kind":"text","text":", "},{"kind":"keyword","text":"readonly"},{"kind":"text","text":") "},{"identifier":"doc:\/\/com.apple.documentation\/documentation\/CoreFoundation\/CFTimeInterval","kind":"typeIdentifier","preciseIdentifier":"c:@T@CFTimeInterval","text":"CFTimeInterval"},{"kind":"text","text":" "},{"kind":"identifier","text":"presentedTime"},{"kind":"text","text":";"}]}],"kind":"declarations"}},{"op":"replace","path":"\/references\/doc:~1~1com.apple.documentation~1documentation~1CoreFoundation~1CFTimeInterval\/fragments","value":[{"kind":"identifier","text":"CFTimeInterval"}]},{"op":"replace","path":"\/references\/doc:~1~1com.apple.metal~1documentation~1Metal~1MTLDrawable\/title","value":"MTLDrawable"},{"op":"replace","path":"\/references\/doc:~1~1com.apple.metal~1documentation~1Metal~1MTLDrawable\/fragments","value":[{"kind":"identifier","text":"MTLDrawable"}]},{"op":"replace","path":"\/references\/doc:~1~1com.apple.metal~1documentation~1Metal~1MTLDrawable\/navigatorTitle","value":[{"kind":"identifier","text":"MTLDrawable"}]},{"op":"replace","path":"\/references\/doc:~1~1com.apple.metal~1documentation~1Metal~1MTLDrawable~1addPresentedHandler(_:)\/title","value":"addPresentedHandler:"},{"op":"replace","path":"\/references\/doc:~1~1com.apple.metal~1documentation~1Metal~1MTLDrawable~1addPresentedHandler(_:)\/fragments","value":[{"kind":"text","text":"- "},{"kind":"identifier","text":"addPresentedHandler:"}]},{"op":"replace","path":"\/references\/doc:~1~1com.apple.metal~1documentation~1Metal~1MTLDrawable~1presentedTime\/title","value":"presentedTime"},{"op":"replace","path":"\/references\/doc:~1~1com.apple.metal~1documentation~1Metal~1MTLDrawable~1presentedTime\/fragments","value":[{"kind":"identifier","text":"presentedTime"}]}],"traits":[{"interfaceLanguage":"occ"}]}]}