Skip to content

优化精准适配API

Choose a tag to compare

@lixiang1994 lixiang1994 released this 22 Oct 07:34
· 22 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
    .width(._320, is: "width 320")
    .width(._375, is: "width 375")
    .height(._844, is: "height 844")
    .height(._812, is: "height 812")
    .inch(._4_7, is: "4.7 inches")
    .inch(._5_8, is: "5.8 inches")
    .inch(._6_5, is: "6.5 inches")
    .level(.compact, is: "screen 3: 2")
    .level(.regular, is: "screen 16: 9")
    .level(.full, is: "screen 19.5: 9")
    .value