Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 496 Vote(s) - 3.48 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to change the bottom edge color on the iPhone X programmatically?

#1
It changes on their native keyboard/emoji board, depending which of the two are open. I thought it would change the color automatically based on `UIInputViewController`, however it is not occurring with custom keyboard extensions:



[![enter image description here][1]][1]


[1]:
Reply

#2
If you wanna use other background color for the layout which differs with top and bottom edges, or want to keep status bar background color while switching apps, you could try to add two different views of different background color with height 50 or more (pt) in each layout nib. One constraints bottom alignment with top of the safe area, another one constraints top alignment with bottom of the safe area, and then make IBOutlet reference of these two views to set backgroundColor programmatically in code.
Reply

#3
One thing you can do to solve this. Change `backgroundcolor` of your `ViewController's View` for `home indicator`. And set `status bar appearance` separately through `coding` as per your needs.

This will change your `home indicator`, `status bar color` plus a `safe area` to `Chocolate color`, Add `separate view` in `safe area` for your other `design`, as I've added `yellow`.

[![enter image description here][1]][1][![enter image description here][2]][2]

[![enter image description here][3]][3]

If you want different color for your `status bar`, call it somewhere from `viewDidLoad` with `color` you want -

func setStatusBarBackgroundColor(color: UIColor) {

guard let statusBar = UIApplication.shared.value(forKeyPath: "statusBarWindow.statusBar") as? UIView else { return }
statusBar.backgroundColor = color
}

[![enter image description here][4]][4]


Apart from this, You won't be able to do any other changes in `appearance`, at least for now till apple provides any way to control `appearance` of `home indicator`. let me show you.

[![enter image description here][5]][5]

These are the availability of bars, where you can control `appearance` of it. There is no `home indicator bar` option Apple has provide for it's alteration.

These are the only bars you can control appearance -
[Navigation Bars][6]
[Search Bars][7]
[Status Bars][8]
[Tab Bars][9]
[Tool Bars][10]

Referral Link - [iPhone-X Interface Guidelines][11]


[1]:

[2]:

[3]:

[4]:

[5]:

[6]:

[To see links please register here]

[7]:

[To see links please register here]

[8]:

[To see links please register here]

[9]:

[To see links please register here]

[10]:

[To see links please register here]

[11]:

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through