Is it possible to change color of bottom horizontal line of iPhone X series within app?

大憨熊 提交于 2020-01-15 10:06:37

问题


is it possible to change color of bottom horizontal line of iPhone X series within app(inside app only)? my client is asking to change color of this line, and i am not able to find any related topic or solution.

Thanks.


回答1:


No, I don't think it is. That's drawn by the system, and is not part of your app. Apple does not let apps change things outside of that app's "sandbox".

Edit:

I found a long article on the subject online:

https://medium.freecodecamp.org/reverse-engineering-the-iphone-x-home-indicator-color-a4c112f84d34

It seems it's called the "home indicator" and this author supports my suspicion that you can't change its color.

Edit #2

As Matt points out, the color of the home indicator changes automatically. The system has logic in it that tries to keep enough contrast between the home indicator and the area around it so that it's clearly visible. See the article I linked for more on that subject than you probably wanted to know.



来源:https://stackoverflow.com/questions/56047191/is-it-possible-to-change-color-of-bottom-horizontal-line-of-iphone-x-series-with

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!