我fetchAPI响应并在swift中解析pickurl。但我需要检查是imageurl还是videourl:如果我得到图像url然后显示图像,如果我得到视频url然后播放视频:ifleturl=postMedia?.url{//needtocheckhere}例如这是我的视频地址:https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4https://clips.vorwaerts-gmbh.de/big_buck_bunny.mov这里是图片地址:https://clips.vorwaerts-gmbh.de/big_buck_bunny