Skip to content

重构精准适配方式 增加更多纬度匹配条件

Choose a tag to compare

@lixiang1994 lixiang1994 released this 22 Oct 06:35
· 26 commits to master since this release

API Change:

old:

    "default"
    .i35("3.5 inches (iPhone 4, 4s)")
    .i40("4.0 inches (iPhone 5, 5s, SE)")
    .i47("4.7 inches (iPhone 6, 7, 8)")
    .i55("5.5 inches (iPhone 6, 7, 8 Plus)")
    .ifull("full screen (iPhone X, Xs, XsMax)")
    .i58full("5.8 inches (iPhone X, Xs)")
    .i61full("6.1 inches (iPhone XR)")
    .i65full("6.5 inches (iPhone XsMax)")

new:

    "default".screen
    .set("width 320", for: .width(._320))
    .set("width 375", for: .width(._375))
    .set("height 844", for: .height(._844))
    .set("height 812", for: .height(._812))
    .set("4.7 inches", for: .inch(._4_7))
    .set("5.8 inches", for: .inch(._5_8))
    .set("6.5 inches", for: .inch(._6_5))
    .set("screen 3: 2", for: .level(.compact))
    .set("screen 16: 9", for: .level(.regular))
    .set("screen 19.5: 9", for: .level(.full))
    .value