TagListView icon indicating copy to clipboard operation
TagListView copied to clipboard

Multi line tag support

Open pritam-bs opened this issue 3 years ago • 4 comments

[Description]:

  • Support for byWordWrapping Simulator Screen Shot - iPhone SE (2nd generation) - 2020-07-31 at 10 14 35

pritam-bs avatar Jul 31 '20 04:07 pritam-bs

@pritam-bs Hello :) Can you help me please? I'm trying to use your solution for multiline tags, but unfortunately I'm catching fatal error. Fatal error: Negative Array index is out of range

jsyrtsov avatar Aug 27 '20 14:08 jsyrtsov

@jsyrtsov Hi! Please provide some details.

pritam-bs avatar Aug 27 '20 15:08 pritam-bs

@pritam-bs Thank you for your reply ! :) Do you have any chat or messenger ?

jsyrtsov avatar Aug 28 '20 06:08 jsyrtsov

@pritam-bs I also tried your solution and it throws fatal error, here are the logs

Fatal error: Array index is out of range: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-1103.2.25.13/swift/stdlib/public/core/Array.swift, line 382 2020-11-03 15:04:23.466606+0500 LLAXA[30589:293613] Fatal error: Array index is out of range: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-1103.2.25.13/swift/stdlib/public/core/Array.swift, line 382

Crash occures in this function

@discardableResult open func addTagViews(_ tagViewList: [TagView]) -> [TagView] { defer { rearrangeViews() } tagViewList.forEach { tagViews.append($0) // on this line to be precise tagBackgroundViews.append(UIView(frame: $0.bounds)) } return tagViews }

-------------Solution---------- Clean build folder delete derived data and run, project is now working crash free but no multiline text added its still the same

khanskt786 avatar Nov 03 '20 10:11 khanskt786