Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unneeded changes
  • Loading branch information
Gerardo committed Aug 8, 2023
commit 6158b234c3380df9f6aa5db078cb32d359a5f98d
11 changes: 1 addition & 10 deletions packages/react-native-aztec/ios/RNTAztecView/RCTAztecView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class RCTAztecView: Aztec.TextView {
let label = UILabel(frame: .zero)
label.translatesAutoresizingMaskIntoConstraints = false
label.textAlignment = .natural
label.font = font

return label
}()
Expand Down Expand Up @@ -574,19 +575,9 @@ class RCTAztecView: Aztec.TextView {
var placeholderAttributes: [NSAttributedString.Key: Any] {
var placeholderAttributes = typingAttributes
placeholderAttributes[.foregroundColor] = placeholderTextColor
placeholderAttributes[.font] = placeholderFont
return placeholderAttributes
}

@objc var placeholderFont: UIFont {
set {
placeholderLabel.font = newValue
}
get {
return placeholderLabel.font
}
}

@objc var placeholderTextColor: UIColor {
set {
placeholderLabel.textColor = newValue
Expand Down