@@ -163,31 +163,34 @@ struct TimeDetailViewOnly: View {
163163 Divider ( )
164164 . padding ( . leading)
165165
166- if puzzle_type. name == " Megaminx " {
167- Text ( scramble . dropLast ( ) )
168- . font ( . system ( size : ( UIScreen . screenWidth - 32 ) / ( 42.00 ) * 1.44 , weight : . regular , design : . monospaced ) )
169- . foregroundColor ( colourScheme == . light ? . black : . white )
170- . padding ( [ . horizontal ] , 12 )
171- } else {
172- Text ( scramble )
173- . font ( . system ( size : 16 , weight : . regular , design : . monospaced ) )
174- . foregroundColor ( colourScheme == . light ? . black : . white )
175- . padding ( [ . horizontal ] , 12 )
166+ let brokenScramble : Bool = chtscramblesthatdontworkwithtnoodle . contains ( puzzle_type. puzzle ) && ( date < Date ( timeIntervalSince1970 : TimeInterval ( 1643760000 ) ) )
167+
168+ Group {
169+ if puzzle_type . name == " Megaminx " {
170+ Text ( scramble . dropLast ( ) )
171+ . font ( . system ( size : ( UIScreen . screenWidth - 32 ) / ( 42.00 ) * 1.44 , weight : . regular , design : . monospaced ) )
172+ } else {
173+ Text ( scramble )
174+ . font ( . system ( size : 16 , weight : . regular , design : . monospaced ) )
175+ }
176176 }
177+ . foregroundColor ( colourScheme == . light ? . black : . white)
178+ . padding ( [ . horizontal] , 12 )
179+ . padding ( . bottom, brokenScramble ? 12 : 0 )
177180
178- if !chtscramblesthatdontworkwithtnoodle . contains ( puzzle_type . puzzle ) ||
179- date > Date ( timeIntervalSince1970 : TimeInterval ( 1643278.400 ) ) {
181+
182+ if ! ( brokenScramble ) {
180183 Divider ( )
181184 . padding ( . leading)
182185
183-
184186 AsyncScrambleView ( puzzle: puzzle_type. puzzle, scramble: scramble)
185187 . frame ( height: puzzle_type. puzzle. getKey ( ) == " sq1 " ? UIScreen . screenHeight/ 3 : nil )
186188 . padding ( . horizontal, 32 )
187189 . padding ( . bottom)
188190 . padding ( . top, 12 )
189-
190191 }
192+
193+ // if !chtscramblesthatdontworkwithtnoodle.contains(puzzle_type.puzzle) || date > Date(timeIntervalSince1970: TimeInterval(1643278.400))
191194 }
192195 . background ( Color ( uiColor: colourScheme == . light ? . white : . systemGray6) . clipShape ( RoundedRectangle ( cornerRadius: 10 , style: . continuous) ) )
193196
0 commit comments