使用fastlane frameit截屏时,标题和关键词文本怎么叠加?

bgo*_*son 3 app-store ios fastlane fastlane-snapshot frameit

我正在使用 fastlane frameit 生成应用商店屏幕截图。您如何将关键字堆叠在标题顶部,如下图所示?

例子

小智 5

I had the same issue recently.

First of all, update to the latest version of fastlane using

sudo gem update fastlane
Run Code Online (Sandbox Code Playgroud)

Next, follow instructions here:

Create Framefile.json in your screenshots directory (which was created by snapshot if you use it). Mine looks like this:

    {
      "default": {
        "keyword": {
          "font": "./fonts/SFText-Heavy.otf",
          "color": "#76A43B"
        },
        "title": {
          "font": "./fonts/SFText-Regular.otf",
          "color": "#FFFFFF"
        },
        "background": "./background.jpg",
        "padding": 50,
        "stack_title" : true,
        "show_complete_frame": false
      },
      "data": [
        {"filter":"Explore"},
        {"filter":"Search"},
        {"filter":"RecipeCard"},
        {"filter":"Groceries"},
        {"filter":"Favourites"}
      ]
    }
Run Code Online (Sandbox Code Playgroud)

Note that "stack_title" is set to true.

Also you must provide a background picture, title.strings and keyword.strings (for each locale) for frameit to do its job.

Next you just launch frameit in your screenshots directory:

fastlane frameit
Run Code Online (Sandbox Code Playgroud)

如果您对字符串文件或其他内容有任何疑问,我强烈建议您访问我在上面链接的 frameit github 页面。他们在那里有一个很好的例子。