iOS 开发实用技术导航
NSHipster 中文版
› http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
› http://www.cocos2d-iphone.org/
CocoaPods
› http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
› http://code.google.com/mobile/analytics/
WWDC
› https://developer.apple.com/wwdc/
Design Guides and Resources
› https://developer.apple.com/design/
Transcripts of WWDC sessions
› http://asciiwwdc.com
Cocoa with Love
› http://cocoawithlove.com/
Cocoa Dev Central
› http://cocoadevcentral.com/
NSHipster
› http://nshipster.com/
Style Guides
› Google Objective-C Style Guide
› NYTimes Objective-C Style Guide
Useful Tools and Services
› Charles Web Debugging Proxy
› Smore
moyuman
V2EX  ›  iDev

求助, ios app 的这种效果怎么做的?

  •  
  •   moyuman · Feb 14 · 2828 views
    This topic created in 224 days ago, the information mentioned may be changed or developed.

    类似 apple music ,小红书,forward 这种的返回效果是怎么做的?如下图 ScreenRecording_02-14-2026 15-43-12_1.gif

    7 replies  •  2026-03-27 14:22:26 +08:00
    JoeJoeJoe
        1
    JoeJoeJoe  
       Feb 14
    这个效果在 Flutter 里面叫 Hero 动画.

    原生的话就是自定义的缩放+位置动画,和微信的图片打开效果应该是一样的.
    Chicring
        2
    Chicring  
       Feb 14 via iPhone
    swiftui 里面是 zoom 动画
    usVexMownCzar
        3
    usVexMownCzar  
       Feb 14 via iPhone
    https://developer.apple.com/documentation/swiftui/view/matchedgeometryeffect(id:in:properties:anchor:issource:)

    swiftUI 这个 API ,还有另外一个,好像是 navigationitem 上的

    uikit 应该是 hero
    moyuman
        4
    moyuman  
    OP
       Feb 14
    @JoeJoeJoe 感谢!我去研究研究
    moyuman
        5
    moyuman  
    OP
       Feb 14
    @Chicring OKOK ,感谢感谢
    moyuman
        6
    moyuman  
    OP
       Feb 14
    @usVexMownCzar 感谢老哥,我去研究研究!
    holaux
        7
    holaux  
       Mar 27
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2491 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 00:21 · PVG 08:21 · LAX 17:21 · JFK 20:21
    ♥ Do have faith in what you're doing.