File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
Sources/RichEditorSwiftUI/UI Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ let package = Package(
77 name: " RichEditorSwiftUI " ,
88 platforms: [
99 //Add supported platforms here
10- . iOS( . v17 ) ,
10+ . iOS( . v14 ) ,
1111 ] ,
1212 products: [
1313 // Products define the executables and libraries a package produces, making them visible to other packages.
@@ -16,7 +16,7 @@ let package = Package(
1616 targets: [ " RichEditorSwiftUI " ] ) ,
1717 ] ,
1818 targets: [
19- // Targets are the basic building blocks of a package , defining a module or a test suite.
19+ // Targets are the basic building blocks of a pack.age , defining a module or a test suite.
2020 // Targets can depend on other targets in this package and products from dependencies.
2121 . target(
2222 name: " RichEditorSwiftUI " ) ,
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ struct EditorToolBarView: View {
2222 } )
2323 . frame ( height: 50 )
2424 . frame ( maxWidth: . infinity, alignment: . leading)
25- . background ( . gray. opacity ( 0.1 ) )
25+ . background ( Color . gray. opacity ( 0.1 ) )
2626 }
2727}
2828
@@ -48,7 +48,7 @@ private struct ToggleStyleButton: View {
4848 . foregroundColor ( isSelected ? . blue : . black)
4949 . frame ( width: 45 , height: 50 , alignment: . center)
5050 . padding ( . horizontal, 3 )
51- . background ( isSelected ? . gray. opacity ( 0.1 ) : . clear)
51+ . background ( isSelected ? Color . gray. opacity ( 0.1 ) : Color . clear)
5252 } )
5353 }
5454}
@@ -91,7 +91,7 @@ struct TitleStyleButton: View {
9191 . foregroundColor ( isSelected ? . blue : . black)
9292 . frame ( width: 60 , height: 50 , alignment: . center)
9393 . padding ( . horizontal, 3 )
94- . background ( isSelected ? . gray. opacity ( 0.1 ) : . clear)
94+ . background ( isSelected ? Color . gray. opacity ( 0.1 ) : Color . clear)
9595 } )
9696 . onTapGesture {
9797 isExpanded. toggle ( )
Original file line number Diff line number Diff line change @@ -66,8 +66,6 @@ internal struct TextViewWrapper: UIViewRepresentable {
6666 textView. typingAttributes = [ . font: fontStyle]
6767 }
6868 if let fontStyle {
69- var fontAttr = AttributeContainer ( )
70- fontAttr. font = fontStyle
7169 let string = NSMutableAttributedString ( string: state. editableText. string, attributes: [ . font: fontStyle] )
7270 textView. attributedText = string
7371 } else {
You can’t perform that action at this time.
0 commit comments