private void prepareViews() { DurationLabel.Font = DurationLabel.Font.GetMonospacedDigitFont(); PreferredContentSize = View.Frame.Size; BillableSwitch.Resize(); prepareDescriptionField(); }
private void prepareViews() { DurationLabel.Font = DurationLabel.Font.GetMonospacedDigitFont(); PreferredContentSize = View.Frame.Size; BillableSwitch.Resize(); prepareDescriptionField(); centerTextVertically(TagsTextView); TagsTextView.TextContainer.LineFragmentPadding = 0; if (UIDevice.CurrentDevice.CheckSystemVersion(11, 0)) { var bottomSafeAreaInset = UIApplication.SharedApplication.KeyWindow.SafeAreaInsets.Bottom; if (bottomSafeAreaInset >= DeleteButtonBottomConstraint.Constant) { DeleteButtonBottomConstraint.Constant = ConfirmButtonBottomConstraint.Constant = 0; } } }